Skip to content

Instantly share code, notes, and snippets.

@jrochkind
Created April 14, 2011 20:39
Show Gist options
  • Save jrochkind/920478 to your computer and use it in GitHub Desktop.
Save jrochkind/920478 to your computer and use it in GitHub Desktop.
module Namespace
module Original
def print_something
"foo"
end
end
end
module OtherNameSpace
module Dependent
include Namespace::Original
def call_print_something
print_something
end
end
end
class Thing
include OtherNameSpace::Dependent
def print_something
"Thing!"
end
end
puts Thing.new.call_print_something
# prints "Thing!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment