Files
dockerfiles/tests/ruby/testcase/calllambda.rb
T
2019-08-04 22:54:34 -07:00

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?!!?!?!!"})