PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
0 sec ago
Untitled
8 sec ago
Untitled
14 sec ago
Perms
15 sec ago
Untitled
17 sec ago
BSN Map By IPrototypeI
17 sec ago
Untitled
19 sec ago
Theme 22 - Sheena's Themes
29 sec ago
Untitled
By: a guest on
May 26th, 2012
| syntax:
None
| size: 0.20 KB | hits: 15 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
puts RUBY_VERSION
a = lambda { puts "Wow man" }
a.call('hi') #=> silent ignore
b = lambda { |a| puts "hi there" }
b.call("hi",2) #=> warning buddy
b = lambda { |a,b| puts "foo" }
b.call("hi") #=> error
create a
new version
of this paste
RAW Paste Data
puts RUBY_VERSION a = lambda { puts "Wow man" } a.call('hi') #=> silent ignore b = lambda { |a| puts "hi there" } b.call("hi",2) #=> warning buddy b = lambda { |a,b| puts "foo" } b.call("hi") #=> error