2015-04-29から1日間の記事一覧
CSV#open みたいにclose処理を内包しているような書き方。 class Mover def initialize(from: , to: , &blick) @from = from @to = to yield(self) save end def playeds @from = @from + "適当" end def favorites @from = @from + "j" end def save puts "…
CSV#open みたいにclose処理を内包しているような書き方。 class Mover def initialize(from: , to: , &blick) @from = from @to = to yield(self) save end def playeds @from = @from + "適当" end def favorites @from = @from + "j" end def save puts "…