S
Stefan Buhr
Hi there,
I want to do this:
@myclass.items[5] = an_item
But the items object of @myclass should have an custom setter. I have
tried this:
class Myclass
def items
def []= value
-code-
end
end
end
but this does not work. How can i do that?
cheers,
buhrmi
I want to do this:
@myclass.items[5] = an_item
But the items object of @myclass should have an custom setter. I have
tried this:
class Myclass
def items
def []= value
-code-
end
end
end
but this does not work. How can i do that?
cheers,
buhrmi