Skip to content

Instantly share code, notes, and snippets.

@daneharrigan
Created September 29, 2012 09:20
Show Gist options
  • Save daneharrigan/3803542 to your computer and use it in GitHub Desktop.
Save daneharrigan/3803542 to your computer and use it in GitHub Desktop.
class Foo
def foo
puts "foo method"
end
end
module Bar
class Foo
def bar
puts "bar method"
end
end
end
include Bar
foo = Foo.new
foo.foo
foo.bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment