Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Created August 20, 2011 00:24
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 jc00ke/1158385 to your computer and use it in GitHub Desktop.
Save jc00ke/1158385 to your computer and use it in GitHub Desktop.
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