Skip to content

Instantly share code, notes, and snippets.

@kristjan
Last active August 29, 2015 14:01
Show Gist options
  • Save kristjan/71f6940c71133f6bb8bc to your computer and use it in GitHub Desktop.
Save kristjan/71f6940c71133f6bb8bc to your computer and use it in GitHub Desktop.
$ ruby proctest.rb
1
proctest.rb:2:in `block in <main>': wrong number of arguments (2 for 1) (ArgumentError)
from proctest.rb:5:in `call'
from proctest.rb:5:in `<main>'
relaxed = Proc.new { |a| puts a.inspect }
strict = lambda { |a| puts a.inspect }
relaxed.call(1,2)
strict.call(1,2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment