Guest User

Untitled

a guest
Jun 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. x = Proc.new{|i| i*2 }
  2. x = proc{ x.call(i) + i }
  3.  
  4. x.call(5) # =>
  5. # ~> -:2: undefined local variable or method `i' for main:Object (NameError)
  6. # ~> from -:4:in `call'
  7. # ~> from -:4
Add Comment
Please, Sign In to add comment