Skip to content

Instantly share code, notes, and snippets.

@shellandbull
Created March 9, 2014 12:48
Show Gist options
  • Save shellandbull/9447276 to your computer and use it in GitHub Desktop.
Save shellandbull/9447276 to your computer and use it in GitHub Desktop.
class Superman
def initialize
@solar_energy = 50
end
def solar_energy
@solar_energy
end
def absorb_energy_from(energy_source)
@solar_energy += energy_source.sunbeam_energy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment