Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View rbx_weak_ref.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
17:23:53 jesse@maynard:~ ruby-1.9.2-p290
∴ ruby -rweakref -e "x = 'mike'; f = WeakRef.new(x); puts f.size;"
4
 
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 = WeakRef.new(x); puts f.size;"
An exception occurred evaluating command line code
undefined method `size' on an instance of WeakRef. (NoMethodError)
 
Backtrace:
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
/block_environment.rb:72
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
Something went wrong with that request. Please try again.