| NAMESPACEMATCH |
= |
/(?:(?:#{NSEPQ})?#{CONSTANTMATCH})+/ |
| METHODNAMEMATCH |
= |
/[a-zA-Z_]\w*[!?=]?|[-+~]\@|<<|>>|=~|===?|[<>]=?|\*\*|[-\/+%^&*~`|]|\[\]=?/ |
| METHODMATCH |
= |
/(?:(?:#{NAMESPACEMATCH}|self)\s*(?:#{CSEPQ}|#{NSEPQ})\s*)?#{METHODNAMEMATCH}/ |
| BUILTIN_EXCEPTIONS |
= |
["SecurityError", "Exception", "NoMethodError", "FloatDomainError", "IOError", "TypeError", "NotImplementedError", "SystemExit", "Interrupt", "SyntaxError", "RangeError", "NoMemoryError", "ArgumentError", "ThreadError", "EOFError", "RuntimeError", "ZeroDivisionError", "StandardError", "LoadError", "NameError", "LocalJumpError", "SystemCallError", "SignalException", "ScriptError", "SystemStackError", "RegexpError", "IndexError"] |
| BUILTIN_CLASSES |
= |
["TrueClass", "Array", "Dir", "Struct", "UnboundMethod", "Object", "Fixnum", "Float", "ThreadGroup", "MatchingData", "MatchData", "Proc", "Binding", "Class", "Time", "Bignum", "NilClass", "Symbol", "Numeric", "String", "Data", "MatchData", "Regexp", "Integer", "File", "IO", "Range", "FalseClass", "Method", "Continuation", "Thread", "Hash", "Module"] + BUILTIN_EXCEPTIONS |
|
Note: MatchingData is a 1.8.x legacy class
|
| BUILTIN_MODULES |
= |
["ObjectSpace", "Signal", "Marshal", "Kernel", "Process", "GC", "FileTest", "Enumerable", "Comparable", "Errno", "Precision", "Math"] |
| BUILTIN_ALL |
= |
BUILTIN_CLASSES + BUILTIN_MODULES |
| BUILTIN_EXCEPTIONS_HASH |
= |
BUILTIN_EXCEPTIONS.inject({}) {|h,n| h.update(n => true) } |