Skip to content

Instantly share code, notes, and snippets.

@ryana
Created March 2, 2011 20:32
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 ryana/851687 to your computer and use it in GitHub Desktop.
Save ryana/851687 to your computer and use it in GitHub Desktop.
WTF is Ruby1.9 doing this to us?
ra:~ ryan$ rvm list
rvm rubies
=> ree-1.8.6-20090610 [ x86_64 ]
ree-1.8.7-2010.01 [ i386 ]
ree-1.8.7-2010.02 [ x86_64 ]
ruby-1.8.7-p249 [ i386 ]
ruby-1.8.7-p302 [ x86_64 ]
ruby-1.9.1-p243 [ ]
ruby-1.9.2-p0 [ x86_64 ]
ra:~ ryan$ irb
ree-1.8.6-20090610 > self.class.instance_methods
=> ["inspect", "clone", "hash", "public_methods", "instance_variable_defined?", "local_methods", "equal?", "freeze", "methods", "respond_to?", "method", "dup", "instance_variables", "personal_methods", "__id__", "eql?", "object_id", "id", "singleton_methods", "taint", "frozen?", "instance_variable_get", "__send__", "instance_of?", "to_a", "type", "protected_methods", "send", "==", "===", "instance_variable_set", "kind_of?", "to_s", "class", "instance_eval", "tainted?", "=~", "private_methods", "display", "untaint", "nil?", "is_a?", "extend"]
ree-1.8.6-20090610 > exit
ra:~ ryan$ rvm use 1.9.2
info: Using ruby 1.9.2 p0
ra:~ ryan$ irb
ruby-1.9.2-p0 > self.class.instance_methods
=> [:local_methods, :personal_methods, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :method, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__]
ruby-1.9.2-p0 > exit
ra:~ ryan$ # i hate you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment