Skip to content

Instantly share code, notes, and snippets.

@jbowles
Created May 28, 2012 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbowles/2820073 to your computer and use it in GitHub Desktop.
Save jbowles/2820073 to your computer and use it in GitHub Desktop.
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
Copy link

Yay Ruby!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment