B
Bill Kelly
Howdy!
I'm inheriting from BasicObject (ruby 1.9), but in my case
I'd like it to be slightly less basic.
Currently I'm importing methods like:
def lambda(*args, &block)
Kernel.lambda(*args, &block)
end
def raise(*args)
Kernel.raise(*args)
end
def throw(*args)
Kernel.throw(*args)
end
But I'm guessing there's probably a way I could do more
of a selective 'include' and import these methods more
directly, rather than wrapping them like this?
(I looked at the source for rb_include_module and
include_class_new, but it didn't seem to involve any
loops that operated on a method-by-method basis.)
Thanks for any help,
Bill
I'm inheriting from BasicObject (ruby 1.9), but in my case
I'd like it to be slightly less basic.
Currently I'm importing methods like:
def lambda(*args, &block)
Kernel.lambda(*args, &block)
end
def raise(*args)
Kernel.raise(*args)
end
def throw(*args)
Kernel.throw(*args)
end
But I'm guessing there's probably a way I could do more
of a selective 'include' and import these methods more
directly, rather than wrapping them like this?
(I looked at the source for rb_include_module and
include_class_new, but it didn't seem to involve any
loops that operated on a method-by-method basis.)
Thanks for any help,
Bill