-> 08 { 07 / 15 }
ゆの in Ruby
Ruby 版をちょさんいがい作ってない(のかな)!のでバリエーションを。とりあえず特異メソッド版。
#!ruby -Ku class << (_ = × = 来週も見てくださいね! = 'ひだまりスケッチ×365 ') def / x=/_/x sub! /(.*)/, ''; print $1 self end def < x=/_/x print open(caller.first.split(':').first).read.split(/\s/)[-2..-1].join(' ') end end × / _ / × < 来週も見てくださいね!
メソッド定義の引数はなんでもいいんだけどなんとなくゆのっぽく。
コメント
トラックバック - http://subtech.g.hatena.ne.jp/secondlife/20080715