Skip to content

Instantly share code, notes, and snippets.

@epall
Created November 23, 2011 05:40
Show Gist options
  • Save epall/1387957 to your computer and use it in GitHub Desktop.
Save epall/1387957 to your computer and use it in GitHub Desktop.
$ irb
irb(main):001:0> RUBY_VERSION
=> "1.9.2"
irb(main):002:0> Module.constants
=> [:Object, :Module, :Class, :Kernel, :NilClass, :NIL, :Data, :TrueClass, :TRUE, :FalseClass, :FALSE, :Encoding, :Comparable, :Enumerable, :String, :Symbol, :Exception, :SystemExit, :SignalException, :Interrupt, :StandardError, :TypeError, :ArgumentError, :IndexError, :KeyError, :RangeError, :ScriptError, :SyntaxError, :LoadError, :NotImplementedError, :NameError, :NoMethodError, :RuntimeError, :SecurityError, :NoMemoryError, :EncodingError, :SystemCallError, :Errno, :ZeroDivisionError, :FloatDomainError, :Numeric, :Integer, :Fixnum, :Float, :Bignum, :Array, :Hash, :ENV, :Struct, :RegexpError, :Regexp, :MatchData, :Marshal, :Range, :IOError, :EOFError, :IO, :STDIN, :STDOUT, :STDERR, :ARGF, :FileTest, :File, :Dir, :Time, :Random, :Signal, :Process, :Proc, :LocalJumpError, :SystemStackError, :Method, :UnboundMethod, :Binding, :Math, :GC, :ObjectSpace, :Enumerator, :StopIteration, :RubyVM, :Thread, :TOPLEVEL_BINDING, :ThreadGroup, :Mutex, :ThreadError, :Fiber, :FiberError, :Rational, :Complex, :RUBY_VERSION, :RUBY_RELEASE_DATE, :RUBY_PLATFORM, :RUBY_PATCHLEVEL, :RUBY_REVISION, :RUBY_DESCRIPTION, :RUBY_COPYRIGHT, :RUBY_ENGINE, :ARGV, :Gem, :Exception2MessageMapper, :IRB, :RubyToken, :RubyLex, :Readline, :RbConfig, :Config, :CROSS_COMPILING, :YAML, :Date, :BasicObject]
irb(main):003:0> Module.constants(true)
=> []
irb(main):004:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment