Skip to content

Instantly share code, notes, and snippets.

@scottjg
Created December 18, 2012 00:58
Show Gist options
  • Save scottjg/4323979 to your computer and use it in GitHub Desktop.
Save scottjg/4323979 to your computer and use it in GitHub Desktop.
broken module class mix-in
#!/usr/bin/env ruby
module My
module Foo
class Bar
def hello
puts "hello"
end
end
end
end
module Foo
include My::Foo
class Bar
def bye
puts "bye"
end
end
end
f = Foo::Bar.new
f.hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment