2018-02-01から1日間の記事一覧
Ruby2.1で追加されたRefinementsのメモ バージョンは、2.1.10にて確認 class Parent def hoge puts "Parent::hoge" end end class Child < Parent def hoge puts "Child::hoge" end end module RefineExample refine Child do def hoge2 puts "RefineExample…
Ruby2.1で追加されたRefinementsのメモ バージョンは、2.1.10にて確認 class Parent def hoge puts "Parent::hoge" end end class Child < Parent def hoge puts "Child::hoge" end end module RefineExample refine Child do def hoge2 puts "RefineExample…