Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created February 14, 2012 10:42
Show Gist options
  • Save arturaz/1825711 to your computer and use it in GitHub Desktop.
Save arturaz/1825711 to your computer and use it in GitHub Desktop.
jruby-1.6.6 :001 > lambda { raise "what?" }
=> #<Proc:0x9bbca@(irb):1 (lambda)>
jruby-1.6.6 :002 > a = _
=> #<Proc:0x9bbca@(irb):1 (lambda)>
jruby-1.6.6 :003 > puts
=> nil
jruby-1.6.6 :004 > puts
=> nil
jruby-1.6.6 :005 > puts
=> nil
jruby-1.6.6 :006 > puts
=> nil
jruby-1.6.6 :007 > a.call
RuntimeError: what?
from (irb):1:in `evaluate'
from org/jruby/RubyProc.java:258:in `call'
from (irb):7:in `evaluate'
from org/jruby/RubyKernel.java:1082:in `eval'
from org/jruby/RubyKernel.java:1408:in `loop'
from org/jruby/RubyKernel.java:1195:in `catch'
from org/jruby/RubyKernel.java:1195:in `catch'
from /home/arturas/.rvm/rubies/jruby-1.6.6/bin/irb:17:in `(root)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment