Robert Klemme
5/30/2008 6:21:00 AM
On 29.05.2008 22:47, Leslie Viljoen wrote:
> On Thu, May 29, 2008 at 10:20 PM, Robert Klemme
> <shortcutter@googlemail.com> wrote:
>> On 29.05.2008 21:02, Leslie Viljoen wrote:
>>> On Thu, May 29, 2008 at 6:22 PM, David Masover <ninja@slaphack.com> wrote:
>>>> On Thursday 29 May 2008 10:56:47 Leslie Viljoen wrote:
>>>>> On Thu, May 29, 2008 at 5:45 PM, David Masover <ninja@slaphack.com>
>>>>> wrote:
>>>>>> But your _first_ approach should work. In StringExt.rb:
>>>>> Oh ok. And then I can use 'extend' when I want to extend an instance.
>>>>> Thanks!
>>>> actually, no. What I wrote modifies the String class, so all instances of
>>>> String have a working to_hex. You don't have to do anything more than
>>>> require
>>>> the file.
>>> Yes, that's what I said!
>> Actually, no (see above). :-)
>
> My response was "Oh ok."
And you continued "and _then_ I can use extend when I wan to extend an
instance" - but if the presented approach was followed there was no
module you could use for extend.
Maybe you meant "and I have to define a module and can use extend when I
wan to extend an instance" but that was not at all clear (at least to me).
> What a silly argument!
As far as I know the charter of the group does not prohibit silliness.
Sometimes the most fun comes from silliness. :-)
Kind regards
robert