Skip to content

Instantly share code, notes, and snippets.

@joshk
Forked from josevalim/gist:1012150
Created June 7, 2011 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joshk/1012154 to your computer and use it in GitHub Desktop.
Save joshk/1012154 to your computer and use it in GitHub Desktop.
module UnicornPowers
def fire_super_ray_beam
ray_beam_power
end
def ray_beam_power
"pow"
end
end
module TomCruise
mixin UnicornPowers
def ray_beam_power
"bang"
end
end
TomCruise.fire_super_ray_beam % => "bang"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment