Skip to content

Instantly share code, notes, and snippets.

@jbowles jbowles/lamba.rb
Created May 28, 2012

Embed
What would you like to do?
basic ruby lambda call
def func_one
func_one = lambda do
puts "lambda_one"
end
#func_one.call
end
def func_two
func_two = lambda do
puts "lambda_two"
end
#func_two.call
end
def lambda_good(func1,func2)
func1.call
func2.call
end
@loveybot

This comment has been minimized.

Copy link

commented May 28, 2012

Yay Ruby!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.