>> Math::PI => 3.14159265358979 >> PI NameError: uninitialized constant PI from (irb):3 >> include Math => Object >> PI => 3.14159265358979
OTOH, if the problem is just the names of the overlay classes, think that, as they say, "Class is an object, and Object is a class."
So:
>> require 'csv' >> r = CSV::Reader >> r.parse 'what,ever' do |e| pe end ["what", "ever"]
Yes, in Ruby, a class name is just a reference, like any other, to an object of class Class .
DigitalRoss Dec 03 '09 at 5:02 2009-12-03 05:02
source share