Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
17:23:53 jesse@maynard:~ ruby-1.9.2-p290
∴ ruby -rweakref -e "x = 'mike'; f =; puts f.size;"
17:24:22 jesse@maynard:~ ruby-1.9.2-p290
∴ rvm use default
Using /home/jesse/.rvm/gems/rbx-2.0.0pre
17:24:32 jesse@maynard:~ rbx-2.0.0pre
∴ ruby -rweakref -e "x = 'mike'; f =; puts f.size;"
An exception occurred evaluating command line code
undefined method `size' on an instance of WeakRef. (NoMethodError)
Kernel(WeakRef)#size (method_missing) at kernel/delta/kernel.rb:79
{ } in Object#__script__ at -e:1
Rubinius::BlockEnvironment#call_on_instance at kernel/common
Kernel(Rubinius::Loader)#eval at kernel/common/eval.rb:74
Rubinius::Loader#evals at kernel/loader.rb:571
Rubinius::Loader#main at kernel/loader.rb:747
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment