Skip to content

Instantly share code, notes, and snippets.

@pat
Created October 9, 2008 15:34
Show Gist options
  • 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