blockからblock
def hoo puts "0" nice do puts "2" yield end end def nice puts "1" yield end hoo { puts "3" }
$ ruby hoge.rb 0 1 2 3
読みにくい感じある。慣れ?
def hoo puts "0" nice do puts "2" yield end end def nice puts "1" yield end hoo { puts "3" }
$ ruby hoge.rb 0 1 2 3
読みにくい感じある。慣れ?