Project

General

Profile

Bug #9155 ยป sample.rb

sample file that's also in the gist in the issue - rhs (Russell Smith), 11/26/2013 05:33 AM

 
require 'delegate'

class X < DelegateClass(Integer)
def initialize(value, name)
value = Integer(value)
@name = name
super(value)
end
end

X.new(1, 'test')
    (1-1/1)