svmartin
12/2/2016 - 5:31 PM

explicit_implicit.rb

def explicit_block(&block)
  block.call
end

explicit_block { puts "This is an EXPLICIT block being called." }

def implicit_block
  yield
end

implicit_block { puts "This is an IMPLICIT block being called." }