R
Ruby Rabbit
This has puzzled me a bit. I googled and came up with responses like --
in any case we use respond_to? for duck typing.
I am writing a program in which some classes behave differently
depending on the data in various columns. Typically, this means
displaying and editing of cells. So true and false are boolean and are
displayed and edited as checkboxes.
Having 2 separate classes really complicated things since i don't want
to define 2 separate renderers and editors for true and false.
Just wondered what the thought behind this was?
in any case we use respond_to? for duck typing.
I am writing a program in which some classes behave differently
depending on the data in various columns. Typically, this means
displaying and editing of cells. So true and false are boolean and are
displayed and edited as checkboxes.
Having 2 separate classes really complicated things since i don't want
to define 2 separate renderers and editors for true and false.
Just wondered what the thought behind this was?