public
Created

Kleyn: FP II

  • Download Gist
proc_arg_ex.rb
Ruby
1 2 3 4 5
def some_method
yield
end
 
some_method &proc { puts "hello world!" }

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.