Skip to content

Instantly share code, notes, and snippets.

@westonplatter
Created August 10, 2012 22:42
Show Gist options
  • Save westonplatter/3318683 to your computer and use it in GitHub Desktop.
Save westonplatter/3318683 to your computer and use it in GitHub Desktop.
namespace_ops
# want to see module/classes referenced via symbols.
# put this into IRB
module M # Main is 3 keys longer than M
class A
def test
"a"
end
end
class B < A
def other
"b"
end
end
end
M::A.class_eval do
def self.more
"more"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment