Skip to content

Instantly share code, notes, and snippets.

@kamipo
Created April 22, 2016 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamipo/b06595ea573336129985781889477ec1 to your computer and use it in GitHub Desktop.
Save kamipo/b06595ea573336129985781889477ec1 to your computer and use it in GitHub Desktop.
class Foo
prepend Module.new {
def bar
puts 'bar'
end
}
end
Foo.new.bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment