Skip to content

Instantly share code, notes, and snippets.

@pat
Created October 9, 2008 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pat/15801 to your computer and use it in GitHub Desktop.
Save pat/15801 to your computer and use it in GitHub Desktop.
module Foo
class A
end
end
puts Foo.constants.inspect # => ["A"]
m = Module.new
m.const_set("B", Class.new)
puts m.constants.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment