Skip to content

Instantly share code, notes, and snippets.

@ahoward
Forked from patmaddox/scratch.rb
Created April 23, 2009 17:48
Show Gist options
  • Save ahoward/100638 to your computer and use it in GitHub Desktop.
Save ahoward/100638 to your computer and use it in GitHub Desktop.
module Foo
def foo; end
end
class FooBar
include Foo
end
module Bar
def Bar.included(other)
other.module_eval do
def bar; end
end
end
end
module Foo
include Bar
end
FooBar.new.foo
FooBar.new.bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment