mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-29 17:17:05 +00:00
15 lines
290 B
Ruby
15 lines
290 B
Ruby
def lambda_demo(a_lambda)
|
|
puts "I'm the method!"
|
|
a_lambda.call
|
|
end
|
|
|
|
lambda_demo(lambda { puts "I'm the lambda!" })
|
|
|
|
|
|
def jared(werba)
|
|
puts "still unsure"
|
|
werba.call
|
|
end
|
|
|
|
jared(lambda {puts "why is werba.call inside of the method?"})
|
|
jared(lambda {puts "will this work?!!?!?!!"}) |