A
Andrew Huh?
Hi, I feel kind of dumb for asking this, but I can't honestly find the
answer anywere.
I came across a attribute defined like:
class BlahBlah
def something=(x,y)
#code
end
end
I tried to assign the values as:
BlahBlah.something=(5,10)
and
BlahBlah.something=5,10
and
BlahBlah.something(5,10)
but all give me a "1 for 2" argument error (except for the last which
don't work because something is not a method).
All examples I came across either used only one argument, or defined
something as a method (strip the =).
How can I assign values to this tipe of attribute?
thanks
answer anywere.
I came across a attribute defined like:
class BlahBlah
def something=(x,y)
#code
end
end
I tried to assign the values as:
BlahBlah.something=(5,10)
and
BlahBlah.something=5,10
and
BlahBlah.something(5,10)
but all give me a "1 for 2" argument error (except for the last which
don't work because something is not a method).
All examples I came across either used only one argument, or defined
something as a method (strip the =).
How can I assign values to this tipe of attribute?
thanks