J
Joe Van Dyk
Hi,
I have a class that could look something like this
class MyClass
attr_accessor :x, :y, :z
def math(a, b, c)
end
end
I want to be able to pass in strings to this class and have everything
converted to fixnums (or floats). Do I need to manually do the
setters for x, y, and z and convert a, b, c?
Joe
I have a class that could look something like this
class MyClass
attr_accessor :x, :y, :z
def math(a, b, c)
end
end
I want to be able to pass in strings to this class and have everything
converted to fixnums (or floats). Do I need to manually do the
setters for x, y, and z and convert a, b, c?
Joe