Guest User

Untitled

a guest
Feb 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. An exception has occurred:
  2. No method 'call' on an instance of Fixnum. (NoMethodError)
  3.  
  4. Backtrace:
  5. Kernel(Fixnum)#method_missing at kernel/delta/kernel.rb:13
  6. Object#with_block at bp.rb:2
  7. main.__script__ at bp.rb:5
  8. CompiledMethod#activate_as_script at kernel/common/compiled_method.rb:230
  9. CompiledMethod#as_script at kernel/common/compiled_method.rb:223
  10. Compile.single_load at kernel/common/compile.rb:264
  11. Compile.load_from_extension at kernel/common/compile.rb:309
  12. Object#__script__ at kernel/loader.rb:257
  13.  
  14. > cat bp.rb
  15. def with_block(&prc)
  16. prc.call(1) # If you inspect prc here, it is a Proc, but..
  17. end
  18.  
  19. with_block do |z|
  20. STDERR.puts z
  21. end
Add Comment
Please, Sign In to add comment