>>>>> "P" == Peter Hickman <peter / semantico.com> writes:

P> There is actually no real reason to instantiate this class. I know that 
P> that would solve the problem but truthfully it doesn't make sense. Think 
P> of it as a unit conversion class, each instance of the class would have 
P> no actual instance specific differences.


pigeon% ruby
class Test
        def Test.Calc(x)
                return @rate * x
        end
end

class Fred < Test
        @rate = 10
end

puts Fred.Calc(12)
^D
120
pigeon% 


Guy Decoux