Skip to content

Instantly share code, notes, and snippets.

@vijaydev
Created June 21, 2011 14:46
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 vijaydev/1038004 to your computer and use it in GitHub Desktop.
Save vijaydev/1038004 to your computer and use it in GitHub Desktop.
> 5000.times do |i|
| a[i] = i
| end
> a.symbolize_keys.reject { |k,v| k.class == Fixnum }.sort { |x,y| x[1] <=> y[1] }
=> [[:"!", 33], [:, 37], [:, 38], [:, 42], [:, 43], [:-, 45], [:, 47], [:, 60], [:, 62], [:, 94], [:, 96], [:, 124], [:, 126], [:, 317], [:-, 318], [:, 319], [:=>, 320], [:, 321], [:, 322], [:"!=", 323], [:, 324], [:, 325], [:, 328], [:"!~", 329], [:"..", 330], [:"...", 331], [:[], 332], [:[], 333], [:, 334], [:, 335], [:"::", 336], [:__autoload__, 2881], [:__autoload__, 2884], [:__classpath__, 2889], [:__classpath__, 2892], [:__tmp_classpath__, 2897], [:__tmp_classpath__, 2900], [:"Object=", 2908], [:Object, 2909], [:__classid__, 2913], [:__classid__, 2916], [:"Module=", 2924], [:Module, 2925], [:"Class=", 2932], [:Class, 2933], [:__attached__, 2937], [:__attached__, 2940], [:"Kernel=", 2948], [:Kernel, 2949], [:allocate, 2953], [:allocate, 2956], [:initialize, 2961], [:initialize, 2964], [:inherited, 2969], [:inherited, 2972], [:initialize_copy, 2977], [:initialize_copy, 2980], [:included, 2985], [:included, 2988], [:extended, 2993], [:extended, 2996], [:method_added, 3001], [:method_added, 3004], [:method_removed, 3009], [:method_removed, 3012], [:method_undefined, 3017], [:method_undefined, 3020], [:nil?, 3031], [:equal?, 3039], [:eql?, 3047], [:id, 3049], [:id, 3052], [:type, 3057], [:type, 3060], [:class, 3065], [:class, 3068], [:clone, 3073], [:clone, 3076], [:dup, 3081], [:dup, 3084], [:taint, 3089], [:taint, 3092], [:tainted?, 3103], [:untaint, 3105], [:untaint, 3108], [:freeze, 3113], [:freeze, 3116], [:frozen?, 3127], [:to_a, 3129], [:to_a, 3132], [:to_s, 3137], [:to_s, 3140], [:inspect, 3145], [:inspect, 3148], [:methods, 3153], [:methods, 3156], [:singleton_methods, 3161], [:singleton_methods, 3164], [:protected_methods, 3169], [:protected_methods, 3172], [:private_methods, 3177], [:private_methods, 3180], [:public_methods, 3185], [:public_methods, 3188], [:instance_variables, 3193], [:instance_variables, 3196], [:instance_variable_get, 3201], [:instance_variable_get, 3204], [:instance_variable_set, 3209], [:instance_variable_set, 3212], [:instance_variable_defined?, 3223], [:remove_instance_variable, 3225], [:remove_instance_variable, 3228], [:instance_of?, 3239], [:kind_of?, 3247], [:is_a?, 3255], [:tap, 3257], [:tap, 3260], [:singleton_method_added, 3265], [:singleton_method_added, 3268], [:singleton_method_removed, 3273], [:singleton_method_removed, 3276], [:singleton_method_undefined, 3281], [:singleton_method_undefined, 3284], [:sprintf, 3289], [:sprintf, 3292], [:format, 3297], [:format, 3300], [:"Integer=", 3308], [:Integer, 3309], [:"Float=", 3316], [:Float, 3317], [:"String=", 3324], [:String, 3325], [:"Array=", 3332], [:Array, 3333], [:"NilClass=", 3340], [:NilClass, 3341], [:to_i, 3345], [:to_i, 3348], [:to_f, 3353], [:to_f, 3356], [:new, 3361], [:new, 3364], [:"NIL=", 3372], [:NIL, 3373], [:"Symbol=", 3380], [:Symbol, 3381], [:all_symbols, 3385], [:all_symbols, 3388], [:to_int, 3393], [:to_int, 3396], [:id2name, 3401], [:id2name, 3404], [:to_sym, 3409], [:to_sym, 3412], [:to_proc, 3417], [:to_proc, 3420], [:included_modules, 3425], [:included_modules, 3428], [:include?, 3439], [:name, 3441], [:name, 3444], [:ancestors, 3449], [:ancestors, 3452], [:attr, 3457], [:attr, 3460], [:attr_reader, 3465], [:attr_reader, 3468], [:attr_writer, 3473], [:attr_writer, 3476], [:attr_accessor, 3481], [:attr_accessor, 3484], [:instance_methods, 3489], [:instance_methods, 3492], [:public_instance_methods, 3497], [:public_instance_methods, 3500], [:protected_instance_methods, 3505], [:protected_instance_methods, 3508], [:private_instance_methods, 3513], [:private_instance_methods, 3516], [:class_variable_defined?, 3527], [:constants, 3529], [:constants, 3532], [:const_get, 3537], [:const_get, 3540], [:const_set, 3545], [:const_set, 3548], [:const_defined?, 3559], [:remove_const, 3561], [:remove_const, 3564], [:const_missing, 3569], [:const_missing, 3572], [:class_variables, 3577], [:class_variables, 3580], [:remove_class_variable, 3585], [:remove_class_variable, 3588], [:class_variable_get, 3593], [:class_variable_get, 3596], [:class_variable_set, 3601], [:class_variable_set, 3604], [:superclass, 3609], [:superclass, 3612], [:extend_object, 3617], [:extend_object, 3620], [:append_features, 3625], [:append_features, 3628], [:"Data=", 3636], [:Data, 3637], [:"TrueClass=", 3644], [:TrueClass, 3645], [:"TRUE=", 3652], [:TRUE, 3653], [:"FalseClass=", 3660], [:FalseClass, 3661], [:"FALSE=", 3668], [:FALSE, 3669], [:"Comparable=", 3676], [:Comparable, 3677], [:between?, 3687], [:"Enumerable=", 3692], [:Enumerable, 3693], [:entries, 3697], [:entries, 3700], [:sort, 3705], [:sort, 3708], [:sort_by, 3713], [:sort_by, 3716], [:grep, 3721], [:grep, 3724], [:count, 3729], [:count, 3732], [:find, 3737], [:find, 3740], [:detect, 3745], [:detect, 3748], [:find_index, 3753], [:find_index, 3756], [:find_all, 3761], [:find_all, 3764], [:select, 3769], [:select, 3772], [:reject, 3777], [:reject, 3780], [:collect, 3785], [:collect, 3788], [:map, 3793], [:map, 3796], [:inject, 3801], [:inject, 3804], [:reduce, 3809], [:reduce, 3812], [:partition, 3817], [:partition, 3820], [:group_by, 3825], [:group_by, 3828], [:first, 3833], [:first, 3836], [:all?, 3847], [:any?, 3855], [:one?, 3863], [:none?, 3871], [:min, 3873], [:min, 3876], [:max, 3881], [:max, 3884], [:minmax, 3889], [:minmax, 3892], [:min_by, 3897], [:min_by, 3900], [:max_by, 3905], [:max_by, 3908], [:minmax_by, 3913], [:minmax_by, 3916], [:member?, 3927], [:each_with_index, 3929], [:each_with_index, 3932], [:enum_with_index, 3937], [:enum_with_index, 3940], [:reverse_each, 3945], [:reverse_each, 3948], [:zip, 3953], [:zip, 3956], [:take, 3961], [:take, 3964], [:take_while, 3969], [:take_while, 3972], [:drop, 3977], [:drop, 3980], [:drop_while, 3985], [:drop_while, 3988], [:cycle, 3993], [:cycle, 3996], [:each, 4001], [:each, 4004], [:size, 4009], [:size, 4012], [:"Precision=", 4020], [:Precision, 4021], [:prec, 4025], [:prec, 4028], [:prec_i, 4033], [:prec_i, 4036], [:prec_f, 4041], [:prec_f, 4044], [:induced_from, 4049], [:induced_from, 4052], [:method_missing, 4057], [:method_missing, 4060], [:__id__, 4065], [:__id__, 4068], [:__send__, 4073], [:__send__, 4076], [:, 4083], [:, 4091], [:eval, 4097], [:eval, 4100], [:iterator?, 4111], [:block_given?, 4119], [:loop, 4121], [:loop, 4124], [:respond_to?, 4135], [:raise, 4137], [:raise, 4140], [:fail, 4145], [:fail, 4148], [:caller, 4153], [:caller, 4156], [:caller_for_all_threads, 4161], [:caller_for_all_threads, 4164], [:exit, 4169], [:exit, 4172], [:abort, 4177], [:abort, 4180], [:at_exit, 4185], [:at_exit, 4188], [:catch, 4193], [:catch, 4196], [:throw, 4201], [:throw, 4204], [:global_variables, 4209], [:global_variables, 4212], [:local_variables, 4217], [:local_variables, 4220], [:__method__, 4225], [:__method__, 4228], [:send, 4233], [:send, 4236], [:instance_eval, 4241], [:instance_eval, 4244], [:instance_exec, 4249], [:instance_exec, 4252], [:include, 4257], [:include, 4260], [:public, 4265], [:public, 4268], [:protected, 4273], [:protected, 4276], [:private, 4281], [:private, 4284], [:module_function, 4289], [:module_function, 4292], [:method_defined?, 4303], [:public_method_defined?, 4311], [:private_method_defined?, 4319], [:protected_method_defined?, 4327], [:public_class_method, 4329], [:public_class_method, 4332], [:private_class_method, 4337], [:private_class_method, 4340], [:module_eval, 4345], [:module_eval, 4348], [:module_exec, 4353], [:module_exec, 4356], [:class_eval, 4361], [:class_eval, 4364], [:class_exec, 4369], [:class_exec, 4372], [:remove_method, 4377], [:remove_method, 4380], [:undef_method, 4385], [:undef_method, 4388], [:alias_method, 4393], [:alias_method, 4396], [:define_method, 4401], [:define_method, 4404], [:nesting, 4409], [:nesting, 4412], [:extend, 4417], [:extend, 4420], [:trace_var, 4425], [:trace_var, 4428], [:untrace_var, 4433], [:untrace_var, 4436], [:set_trace_func, 4441], [:set_trace_func, 4444], [:SAFE, 4451], [:hash, 4457], [:hash, 4460], [:casecmp, 4465], [:casecmp, 4468], [:insert, 4473], [:insert, 4476], [:length, 4481], [:length, 4484], [:bytesize, 4489], [:bytesize, 4492], [:empty?, 4503], [:match, 4505], [:match, 4508], [:succ, 4513], [:succ, 4516], [:succ!, 4527], [:next, 4529], [:next, 4532], [:next!, 4543], [:upto, 4545], [:upto, 4548], [:index, 4553], [:index, 4556], [:rindex, 4561], [:rindex, 4564], [:replace, 4569], [:replace, 4572], [:to_str, 4577], [:to_str, 4580], [:dump, 4585], [:dump, 4588], [:upcase, 4593], [:upcase, 4596], [:downcase, 4601], [:downcase, 4604], [:capitalize, 4609], [:capitalize, 4612], [:swapcase, 4617], [:swapcase, 4620], [:upcase!, 4631], [:downcase!, 4639], [:capitalize!, 4647], [:swapcase!, 4655], [:hex, 4657], [:hex, 4660], [:oct, 4665], [:oct, 4668], [:split, 4673], [:split, 4676], [:reverse, 4681], [:reverse, 4684], [:reverse!, 4695], [:concat, 4697], [:concat, 4700], [:crypt, 4705], [:crypt, 4708], [:intern, 4713], [:intern, 4716], [:start_with?, 4727], [:end_with?, 4735], [:scan, 4737], [:scan, 4740], [:ljust, 4745], [:ljust, 4748], [:rjust, 4753], [:rjust, 4756], [:center, 4761], [:center, 4764], [:sub, 4769], [:sub, 4772], [:gsub, 4777], [:gsub, 4780], [:chop, 4785], [:chop, 4788], [:chomp, 4793], [:chomp, 4796], [:strip, 4801], [:strip, 4804], [:lstrip, 4809], [:lstrip, 4812], [:rstrip, 4817], [:rstrip, 4820], [:sub!, 4831], [:gsub!, 4839], [:chop!, 4847], [:chomp!, 4855], [:strip!, 4863], [:lstrip!, 4871], [:rstrip!, 4879], [:tr, 4881], [:tr, 4884], [:tr_s, 4889], [:tr_s, 4892], [:delete, 4897], [:delete, 4900], [:squeeze, 4905], [:squeeze, 4908], [:tr!, 4919], [:tr_s!, 4927], [:delete!, 4935], [:squeeze!, 4943], [:each_line, 4945], [:each_line, 4948], [:each_byte, 4953], [:each_byte, 4956], [:each_char, 4961], [:each_char, 4964], [:lines, 4969], [:lines, 4972], [:bytes, 4977], [:bytes, 4980], [:chars, 4985], [:chars, 4988], [:sum, 4993], [:sum, 4996]]
@samuelkadolph
Copy link

In case anyone is interested just how many symbols ruby 1.8.7 uses by default.

Symbol.all_symbols.sort_by { |s| s.to_i }.each { |s| puts "#{s.to_i.to_s.rjust(5)} :#{s}" }
   33 :!
   37 :%
   38 :&
   42 :*
   43 :+
   45 :-
   47 :/
   60 :<
   62 :>
   94 :^
   96 :`
  124 :|
  126 :~
  317 :+@
  318 :-@
  319 :**
  320 :<=>
  321 :==
  322 :===
  324 :>=
  325 :<=
  328 :=~
  332 :[]
  333 :[]=
  334 :<<
  335 :>>
 2881 :__autoload__
 2889 :__classpath__
 2897 :__tmp_classpath__
 2909 :Object
 2913 :__classid__
 2925 :Module
 2933 :Class
 2937 :__attached__
 2949 :Kernel
 2953 :allocate
 2961 :initialize
 2969 :inherited
 2977 :initialize_copy
 2985 :included
 2993 :extended
 3001 :method_added
 3009 :method_removed
 3017 :method_undefined
 3031 :nil?
 3039 :equal?
 3047 :eql?
 3049 :id
 3057 :type
 3065 :class
 3073 :clone
 3081 :dup
 3089 :taint
 3103 :tainted?
 3105 :untaint
 3113 :freeze
 3127 :frozen?
 3129 :to_a
 3137 :to_s
 3145 :inspect
 3153 :methods
 3161 :singleton_methods
 3169 :protected_methods
 3177 :private_methods
 3185 :public_methods
 3193 :instance_variables
 3201 :instance_variable_get
 3209 :instance_variable_set
 3223 :instance_variable_defined?
 3225 :remove_instance_variable
 3239 :instance_of?
 3247 :kind_of?
 3255 :is_a?
 3257 :tap
 3265 :singleton_method_added
 3273 :singleton_method_removed
 3281 :singleton_method_undefined
 3289 :sprintf
 3297 :format
 3309 :Integer
 3317 :Float
 3325 :String
 3333 :Array
 3341 :NilClass
 3345 :to_i
 3353 :to_f
 3361 :new
 3373 :NIL
 3381 :Symbol
 3385 :all_symbols
 3393 :to_int
 3401 :id2name
 3409 :to_sym
 3417 :to_proc
 3425 :included_modules
 3439 :include?
 3441 :name
 3449 :ancestors
 3457 :attr
 3465 :attr_reader
 3473 :attr_writer
 3481 :attr_accessor
 3489 :instance_methods
 3497 :public_instance_methods
 3505 :protected_instance_methods
 3513 :private_instance_methods
 3527 :class_variable_defined?
 3529 :constants
 3537 :const_get
 3545 :const_set
 3559 :const_defined?
 3561 :remove_const
 3569 :const_missing
 3577 :class_variables
 3585 :remove_class_variable
 3593 :class_variable_get
 3601 :class_variable_set
 3609 :superclass
 3617 :extend_object
 3625 :append_features
 3637 :Data
 3645 :TrueClass
 3653 :TRUE
 3661 :FalseClass
 3669 :FALSE
 3677 :Comparable
 3687 :between?
 3693 :Enumerable
 3697 :entries
 3705 :sort
 3713 :sort_by
 3721 :grep
 3729 :count
 3737 :find
 3745 :detect
 3753 :find_index
 3761 :find_all
 3769 :select
 3777 :reject
 3785 :collect
 3793 :map
 3801 :inject
 3809 :reduce
 3817 :partition
 3825 :group_by
 3833 :first
 3847 :all?
 3855 :any?
 3863 :one?
 3871 :none?
 3873 :min
 3881 :max
 3889 :minmax
 3897 :min_by
 3905 :max_by
 3913 :minmax_by
 3927 :member?
 3929 :each_with_index
 3937 :enum_with_index
 3945 :reverse_each
 3953 :zip
 3961 :take
 3969 :take_while
 3977 :drop
 3985 :drop_while
 3993 :cycle
 4001 :each
 4009 :size
 4021 :Precision
 4025 :prec
 4033 :prec_i
 4041 :prec_f
 4049 :induced_from
 4057 :method_missing
 4065 :__id__
 4073 :__send__
 4083 :$@
 4091 :$!
 4097 :eval
 4111 :iterator?
 4119 :block_given?
 4121 :loop
 4135 :respond_to?
 4137 :raise
 4145 :fail
 4153 :caller
 4161 :exit
 4169 :abort
 4177 :at_exit
 4185 :catch
 4193 :throw
 4201 :global_variables
 4209 :local_variables
 4217 :__method__
 4225 :send
 4233 :instance_eval
 4241 :instance_exec
 4249 :include
 4257 :public
 4265 :protected
 4273 :private
 4281 :module_function
 4295 :method_defined?
 4303 :public_method_defined?
 4311 :private_method_defined?
 4319 :protected_method_defined?
 4321 :public_class_method
 4329 :private_class_method
 4337 :module_eval
 4345 :module_exec
 4353 :class_eval
 4361 :class_exec
 4369 :remove_method
 4377 :undef_method
 4385 :alias_method
 4393 :define_method
 4401 :nesting
 4409 :extend
 4417 :trace_var
 4425 :untrace_var
 4433 :set_trace_func
 4443 :$SAFE
 4449 :hash
 4457 :casecmp
 4465 :insert
 4473 :length
 4481 :bytesize
 4495 :empty?
 4497 :match
 4505 :succ
 4519 :succ!
 4521 :next
 4535 :next!
 4537 :upto
 4545 :index
 4553 :rindex
 4561 :replace
 4569 :to_str
 4577 :dump
 4585 :upcase
 4593 :downcase
 4601 :capitalize
 4609 :swapcase
 4623 :upcase!
 4631 :downcase!
 4639 :capitalize!
 4647 :swapcase!
 4649 :hex
 4657 :oct
 4665 :split
 4673 :reverse
 4687 :reverse!
 4689 :concat
 4697 :crypt
 4705 :intern
 4719 :start_with?
 4727 :end_with?
 4729 :scan
 4737 :ljust
 4745 :rjust
 4753 :center
 4761 :sub
 4769 :gsub
 4777 :chop
 4785 :chomp
 4793 :strip
 4801 :lstrip
 4809 :rstrip
 4823 :sub!
 4831 :gsub!
 4839 :chop!
 4847 :chomp!
 4855 :strip!
 4863 :lstrip!
 4871 :rstrip!
 4873 :tr
 4881 :tr_s
 4889 :delete
 4897 :squeeze
 4911 :tr!
 4919 :tr_s!
 4927 :delete!
 4935 :squeeze!
 4937 :each_line
 4945 :each_byte
 4953 :each_char
 4961 :lines
 4969 :bytes
 4977 :chars
 4985 :sum
 4993 :slice
 5007 :slice!
 5009 :rpartition
 5019 :$;
 5027 :$-F
 5037 :Exception
 5041 :exception
 5049 :message
 5057 :backtrace
 5065 :set_backtrace
 5077 :SystemExit
 5081 :status
 5095 :success?
 5097 :fatal
 5109 :SignalException
 5117 :Interrupt
 5125 :StandardError
 5133 :TypeError
 5141 :ArgumentError
 5149 :IndexError
 5157 :RangeError
 5165 :NameError
 5169 :_dump
 5177 :_load
 5189 :NoMethodError
 5193 :args
 5205 :ScriptError
 5213 :SyntaxError
 5221 :LoadError
 5229 :NotImplementedError
 5237 :RuntimeError
 5245 :SecurityError
 5253 :NoMemoryError
 5261 :SystemCallError
 5265 :errno
 5277 :Errno
 5281 :warn
 5289 :__recursive_key__
 5301 :ThreadError
 5309 :Thread
 5313 :start
 5321 :fork
 5329 :stop
 5337 :kill
 5345 :pass
 5353 :current
 5361 :main
 5369 :list
 5377 :critical
 5380 :critical=
 5385 :abort_on_exception
 5388 :abort_on_exception=
 5393 :run
 5401 :wakeup
 5409 :terminate
 5423 :kill!
 5431 :terminate!
 5439 :exit!
 5441 :value
 5449 :join
 5463 :alive?
 5471 :stop?
 5473 :priority
 5476 :priority=
 5481 :safe_level
 5489 :group
 5503 :key?
 5505 :keys
 5517 :Continuation
 5521 :call
 5529 :callcc
 5541 :ThreadGroup
 5545 :enclose
 5559 :enclosed?
 5561 :add
 5573 :Default
 5577 :coerce
 5589 :ZeroDivisionError
 5597 :FloatDomainError
 5605 :Numeric
 5609 :quo
 5617 :fdiv
 5625 :div
 5633 :divmod
 5641 :modulo
 5649 :remainder
 5657 :abs
 5671 :integer?
 5679 :zero?
 5687 :nonzero?
 5689 :floor
 5697 :ceil
 5705 :round
 5713 :truncate
 5721 :step
 5735 :odd?
 5743 :even?
 5745 :downto
 5753 :times
 5761 :pred
 5769 :chr
 5777 :ord
 5789 :Fixnum
 5797 :ROUNDS
 5805 :RADIX
 5813 :MANT_DIG
 5821 :DIG
 5829 :MIN_EXP
 5837 :MAX_EXP
 5845 :MIN_10_EXP
 5853 :MAX_10_EXP
 5861 :MIN
 5869 :MAX
 5877 :EPSILON
 5887 :nan?
 5895 :infinite?
 5903 :finite?
 5909 :Bignum
 5917 :EPERM
 5925 :ENOENT
 5933 :ESRCH
 5941 :EINTR
 5949 :EIO
 5957 :ENXIO
 5965 :E2BIG
 5973 :ENOEXEC
 5981 :EBADF
 5989 :ECHILD
 5997 :EAGAIN
 6005 :ENOMEM
 6013 :EACCES
 6021 :EFAULT
 6029 :ENOTBLK
 6037 :EBUSY
 6045 :EEXIST
 6053 :EXDEV
 6061 :ENODEV
 6069 :ENOTDIR
 6077 :EISDIR
 6085 :EINVAL
 6093 :ENFILE
 6101 :EMFILE
 6109 :ENOTTY
 6117 :ETXTBSY
 6125 :EFBIG
 6133 :ENOSPC
 6141 :ESPIPE
 6149 :EROFS
 6157 :EMLINK
 6165 :EPIPE
 6173 :EDOM
 6181 :ERANGE
 6189 :EDEADLK
 6197 :ENAMETOOLONG
 6205 :ENOLCK
 6213 :ENOSYS
 6221 :ENOTEMPTY
 6229 :ELOOP
 6237 :EWOULDBLOCK
 6245 :ENOMSG
 6253 :EIDRM
 6261 :ENOSTR
 6269 :ENODATA
 6277 :ETIME
 6285 :ENOSR
 6293 :EREMOTE
 6301 :ENOLINK
 6309 :EPROTO
 6317 :EMULTIHOP
 6325 :EBADMSG
 6333 :EOVERFLOW
 6341 :EILSEQ
 6349 :EUSERS
 6357 :ENOTSOCK
 6365 :EDESTADDRREQ
 6373 :EMSGSIZE
 6381 :EPROTOTYPE
 6389 :ENOPROTOOPT
 6397 :EPROTONOSUPPORT
 6405 :ESOCKTNOSUPPORT
 6413 :EOPNOTSUPP
 6421 :EPFNOSUPPORT
 6429 :EAFNOSUPPORT
 6437 :EADDRINUSE
 6445 :EADDRNOTAVAIL
 6453 :ENETDOWN
 6461 :ENETUNREACH
 6469 :ENETRESET
 6477 :ECONNABORTED
 6485 :ECONNRESET
 6493 :ENOBUFS
 6501 :EISCONN
 6509 :ENOTCONN
 6517 :ESHUTDOWN
 6525 :ETOOMANYREFS
 6533 :ETIMEDOUT
 6541 :ECONNREFUSED
 6549 :EHOSTDOWN
 6557 :EHOSTUNREACH
 6565 :EALREADY
 6573 :EINPROGRESS
 6581 :ESTALE
 6589 :EDQUOT
 6593 :to_ary
 6601 :at
 6609 :fetch
 6617 :last
 6625 :push
 6633 :pop
 6641 :shift
 6649 :unshift
 6657 :each_index
 6665 :indexes
 6673 :indices
 6687 :sort!
 6695 :collect!
 6703 :map!
 6705 :values_at
 6713 :delete_at
 6721 :delete_if
 6735 :reject!
 6737 :transpose
 6745 :clear
 6753 :fill
 6761 :assoc
 6769 :rassoc
 6777 :uniq
 6791 :uniq!
 6793 :compact
 6807 :compact!
 6809 :flatten
 6823 :flatten!
 6825 :nitems
 6839 :shuffle!
 6841 :shuffle
 6849 :choice
 6857 :permutation
 6865 :combination
 6873 :product
 6881 :__inspect_key__
 6889 :default
 6892 :default=
 6901 :Hash
 6905 :rehash
 6913 :to_hash
 6921 :store
 6929 :default_proc
 6937 :each_value
 6945 :each_key
 6953 :each_pair
 6961 :values
 6969 :invert
 6977 :update
 6991 :merge!
 6993 :merge
 7007 :has_key?
 7015 :has_value?
 7023 :value?
 7029 :ENV
 7037 :Struct
 7041 :members
 7053 :RegexpError
 7059 :$~
 7067 :$&
 7075 :$`
 7083 :$'
 7091 :$+
 7099 :$=
 7107 :$KCODE
 7115 :$-K
 7125 :Regexp
 7129 :compile
 7137 :quote
 7145 :escape
 7153 :union
 7161 :last_match
 7169 :source
 7183 :casefold?
 7185 :options
 7193 :kcode
 7205 :IGNORECASE
 7213 :EXTENDED
 7221 :MULTILINE
 7229 :MatchData
 7237 :MatchingData
 7241 :offset
 7249 :begin
 7257 :end
 7265 :captures
 7273 :pre_match
 7281 :post_match
 7289 :string
 7297 :pack
 7305 :unpack
 7317 :Range
 7327 :exclude_end?
 7329 :excl
 7341 :IOError
 7349 :EOFError
 7353 :write
 7361 :read
 7369 :getc
 7377 :syscall
 7385 :open
 7393 :printf
 7401 :print
 7409 :putc
 7417 :puts
 7425 :gets
 7433 :readline
 7441 :readlines
 7449 :p
 7457 :display
 7469 :IO
 7473 :sysopen
 7481 :for_fd
 7489 :popen
 7497 :foreach
 7505 :pipe
 7515 :$,
 7523 :$/
 7531 :$-0
 7539 :$\
 7547 :$.
 7555 :$_
 7561 :reopen
 7569 :syswrite
 7577 :sysread
 7585 :fileno
 7593 :to_io
 7601 :fsync
 7609 :sync
 7612 :sync=
 7617 :lineno
 7620 :lineno=
 7625 :read_nonblock
 7633 :write_nonblock
 7641 :readpartial
 7649 :getbyte
 7657 :readchar
 7665 :readbyte
 7673 :ungetc
 7681 :flush
 7689 :tell
 7697 :seek
 7709 :SEEK_SET
 7717 :SEEK_CUR
 7725 :SEEK_END
 7729 :rewind
 7737 :pos
 7740 :pos=
 7745 :eof
 7759 :eof?
 7761 :close
 7775 :closed?
 7777 :close_read
 7785 :close_write
 7793 :isatty
 7807 :tty?
 7809 :binmode
 7817 :sysseek
 7825 :ioctl
 7833 :fcntl
 7841 :pid
 7851 :$stdin
 7859 :$stdout
 7867 :$stderr
 7875 :$>
 7883 :$defout
 7891 :$deferr
 7901 :STDIN
 7909 :STDOUT
 7917 :STDERR
 7923 :$<
 7933 :ARGF
 7937 :filename
 7945 :path
 7953 :file
 7961 :skip
 7971 :$FILENAME
 7979 :$-i
 7989 :FileTest
 7997 :File
 8007 :directory?
 8015 :exist?
 8023 :exists?
 8031 :readable?
 8039 :readable_real?
 8047 :writable?
 8055 :writable_real?
 8063 :executable?
 8071 :executable_real?
 8079 :file?
 8087 :size?
 8095 :owned?
 8103 :grpowned?
 8111 :pipe?
 8119 :symlink?
 8127 :socket?
 8135 :blockdev?
 8143 :chardev?
 8151 :setuid?
 8159 :setgid?
 8167 :sticky?
 8175 :identical?
 8177 :stat
 8185 :lstat
 8193 :ftype
 8201 :atime
 8209 :mtime
 8217 :ctime
 8225 :utime
 8233 :chmod
 8241 :chown
 8249 :lchmod
 8257 :lchown
 8265 :link
 8273 :symlink
 8281 :readlink
 8289 :unlink
 8297 :rename
 8305 :umask
 8313 :expand_path
 8321 :basename
 8329 :dirname
 8337 :extname
 8349 :Separator
 8357 :SEPARATOR
 8365 :ALT_SEPARATOR
 8373 :PATH_SEPARATOR
 8377 :flock
 8389 :Constants
 8397 :LOCK_SH
 8405 :LOCK_EX
 8413 :LOCK_UN
 8421 :LOCK_NB
 8425 :test
 8437 :Stat
 8441 :dev
 8449 :dev_major
 8457 :dev_minor
 8465 :ino
 8473 :mode
 8481 :nlink
 8489 :uid
 8492 :uid=
 8497 :gid
 8500 :gid=
 8505 :rdev
 8513 :rdev_major
 8521 :rdev_minor
 8529 :blksize
 8537 :blocks
 8549 :RDONLY
 8557 :WRONLY
 8565 :RDWR
 8573 :APPEND
 8581 :CREAT
 8589 :EXCL
 8597 :NONBLOCK
 8605 :TRUNC
 8613 :NOCTTY
 8621 :SYNC
 8629 :Dir
 8633 :chdir
 8641 :getwd
 8649 :pwd
 8657 :chroot
 8665 :mkdir
 8673 :rmdir
 8681 :glob
 8689 :fnmatch
 8703 :fnmatch?
 8709 :FNM_NOESCAPE
 8717 :FNM_PATHNAME
 8725 :FNM_DOTMATCH
 8733 :FNM_CASEFOLD
 8741 :FNM_SYSCASE
 8749 :Time
 8753 :now
 8761 :utc
 8769 :gm
 8777 :local
 8785 :mktime
 8793 :localtime
 8801 :gmtime
 8809 :getlocal
 8817 :getgm
 8825 :getutc
 8833 :asctime
 8841 :sec
 8849 :hour
 8857 :mday
 8865 :day
 8873 :mon
 8881 :month
 8889 :year
 8897 :wday
 8905 :yday
 8913 :isdst
 8927 :dst?
 8929 :zone
 8937 :gmtoff
 8945 :gmt_offset
 8953 :utc_offset
 8967 :utc?
 8975 :gmt?
 8977 :tv_sec
 8985 :tv_usec
 8993 :usec
 9001 :strftime
 9009 :srand
 9017 :rand
 9029 :Signal
 9033 :trap
 9041 :signo
 9050 :@signo
 9057 :signm
 9067 :$$
 9075 :$?
 9081 :exec
 9089 :system
 9097 :sleep
 9109 :Process
 9117 :WNOHANG
 9125 :WUNTRACED
 9129 :wait
 9137 :wait2
 9145 :waitpid
 9153 :waitpid2
 9161 :waitall
 9169 :detach
 9181 :Status
 9191 :stopped?
 9193 :stopsig
 9207 :signaled?
 9209 :termsig
 9223 :exited?
 9225 :exitstatus
 9239 :coredump?
 9241 :ppid
 9249 :getpgrp
 9257 :setpgrp
 9265 :getpgid
 9273 :setpgid
 9281 :setsid
 9289 :getpriority
 9297 :setpriority
 9309 :PRIO_PROCESS
 9317 :PRIO_PGRP
 9325 :PRIO_USER
 9329 :getrlimit
 9337 :setrlimit
 9349 :RLIM_INFINITY
 9357 :RLIM_SAVED_MAX
 9365 :RLIM_SAVED_CUR
 9373 :RLIMIT_CORE
 9381 :RLIMIT_CPU
 9389 :RLIMIT_DATA
 9397 :RLIMIT_FSIZE
 9405 :RLIMIT_NOFILE
 9413 :RLIMIT_STACK
 9421 :RLIMIT_AS
 9429 :RLIMIT_MEMLOCK
 9437 :RLIMIT_NPROC
 9445 :RLIMIT_RSS
 9449 :euid
 9452 :euid=
 9457 :egid
 9460 :egid=
 9465 :initgroups
 9473 :groups
 9476 :groups=
 9481 :maxgroups
 9484 :maxgroups=
 9489 :stime
 9497 :cutime
 9505 :cstime
 9517 :Tms
 9521 :__size__
 9529 :__members__
 9541 :UID
 9549 :GID
 9553 :rid
 9561 :eid
 9564 :eid=
 9569 :change_privilege
 9577 :grant_privilege
 9585 :re_exchange
 9599 :re_exchangeable?
 9607 :sid_available?
 9609 :switch
 9621 :Sys
 9625 :getuid
 9633 :geteuid
 9641 :getgid
 9649 :getegid
 9657 :setuid
 9665 :setgid
 9673 :setruid
 9681 :setrgid
 9689 :seteuid
 9697 :setegid
 9705 :setreuid
 9713 :setregid
 9721 :setresuid
 9729 :setresgid
 9737 :issetugid
 9747 :$:
 9755 :$-I
 9763 :$LOAD_PATH
 9771 :$"
 9779 :$LOADED_FEATURES
 9785 :load
 9793 :require
 9801 :autoload
 9815 :autoload?
 9821 :LocalJumpError
 9825 :exit_value
 9833 :reason
 9841 :mesg
 9849 :bt
 9861 :SystemStackError
 9869 :Proc
 9873 :arity
 9881 :binding
 9889 :proc
 9897 :lambda
 9909 :Method
 9913 :receiver
 9921 :owner
 9929 :unbind
 9937 :method
 9949 :UnboundMethod
 9953 :bind
 9961 :instance_method
 9973 :Binding
 9981 :Math
 9989 :PI
 9997 :E
10001 :atan2
10009 :cos
10017 :sin
10025 :tan
10033 :acos
10041 :asin
10049 :atan
10057 :cosh
10065 :sinh
10073 :tanh
10081 :acosh
10089 :asinh
10097 :atanh
10105 :exp
10113 :log
10121 :log10
10129 :sqrt
10137 :frexp
10145 :ldexp
10153 :hypot
10161 :erf
10169 :erfc
10181 :GC
10185 :enable
10193 :disable
10201 :stress
10204 :stress=
10209 :garbage_collect
10221 :ObjectSpace
10225 :each_object
10233 :add_finalizer
10241 :remove_finalizer
10249 :finalizers
10257 :call_finalizer
10265 :define_finalizer
10273 :undefine_finalizer
10281 :_id2ref
10289 :object_id
10297 :to_enum
10305 :enum_for
10313 :each_slice
10321 :enum_slice
10329 :each_cons
10337 :enum_cons
10349 :Enumerator
10353 :with_index
10365 :StopIteration
10373 :Marshal
10377 :marshal_dump
10385 :marshal_load
10393 :_dump_data
10401 :_load_data
10409 :_alloc
10417 :restore
10429 :MAJOR_VERSION
10437 :MINOR_VERSION
10445 :RUBY_VERSION
10453 :RUBY_RELEASE_DATE
10461 :RUBY_PLATFORM
10469 :RUBY_PATCHLEVEL
10477 :RUBY_DESCRIPTION
10485 :RUBY_COPYRIGHT
10493 :VERSION
10501 :RELEASE_DATE
10509 :PLATFORM
10517 :TOPLEVEL_BINDING
10523 :$VERBOSE
10531 :$-v
10539 :$-w
10547 :$DEBUG
10555 :$-d
10563 :$-p
10571 :$-l
10579 :$0
10587 :$PROGRAM_NAME
10595 :$*
10605 :ARGV
10611 :$-a
10621 :SCRIPT_LINES__
10625 :s

@vijaydev
Copy link
Author

Wow. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment