def call_block yield 1 yield 2 yield 3 end call_block { |i| puts i }
def call_block (&block) block.call 1 block.call 2 block.call 3 end call_block { |i| puts i }
def call_block (&block) block.call 1 block.call 2 block.call 3 end p = Proc.new { |i| puts i } call_block &p
def call_block (&block) block.call 1 block.call 2 block.call 3 end p = ->i { puts i } call_block &p