1.step(3, SimpleDelegator.new(Rational(1,2))

1.step(3, Rational(1,2)) e$B$,Nc30$K$J$i$J$$$N$Ke(B
1.step(3, SimpleDelegator.new(Rational(1,2))) e$B$,Nc30$K$J$k$Ne(B
e$B$OJQ$G$O$J$$$G$7$g$&$+!#e(B

% ./ruby -v -rdelegate -e ‘1.step(3, SimpleDelegator.new(Rational(1,2)))
{|x| p x }’
ruby 1.9.0 (2008-05-22 revision 16533) [i686-linux]
/home/akr/ruby/yarvo0/lib/ruby/1.9.0/delegate.rb:225: warning: instance
variable @delegate_sd_obj not initialized
1
Rational(3, 2)
-e:1:in +': SimpleDelegator can't be coerced into Rational (TypeError) from -e:1:instep’
from -e:1:in `’

% ./ruby -v -e ‘1.step(3, Rational(1,2)) {|x| p x }’
ruby 1.9.0 (2008-05-22 revision 16533) [i686-linux]
1
Rational(3, 2)
Rational(2, 1)
Rational(5, 2)
Rational(3, 1)