P
Patrick Gundlach
Hi,
with ruby 1.8.2:
--------------------------------------------------
class A
def method_missing (a,*b)
# do something
end
end
a=A.new
a.foo("bar","baz")
a.foo=("bar","baz")
--------------------------------------------------
the last line gives me an error
-:11: syntax error
a.foo=("bar","baz")
^
Any way I can assign multiple values in a natural way with
method_missing? Or would you suggest to use an array that holds
multiple data?
Regards,
Patrick
with ruby 1.8.2:
--------------------------------------------------
class A
def method_missing (a,*b)
# do something
end
end
a=A.new
a.foo("bar","baz")
a.foo=("bar","baz")
--------------------------------------------------
the last line gives me an error
-:11: syntax error
a.foo=("bar","baz")
^
Any way I can assign multiple values in a natural way with
method_missing? Or would you suggest to use an array that holds
multiple data?
Regards,
Patrick