2008-02-23から1日間の記事一覧
たとえば、Rubyの+や*は左から右に結合されるけど、**は右から左に結合される。 class Fixnum alias :orig_add :+ def +( other ) ret = orig_add( other ) puts "#{self} + #{other} = #{ret}" return ret end alias :orig_mul :* def *( other ) ret = ori…
1000speakersのustを見る。