You cannot post messages because only members can post, and you are not currently a member.
Description:
The official mailing list for Jay Phillips' Ruby Methodphitamine gem. Post any bugs, comments or feature suggestions here!
|
|
|
How about handling more than one block argument?
|
| |
Here is one possible way to do it: module Kernel protected def it() It.new end alias its it end class It undef_method(*(instance_method s - %w*__id__ __send__*)) def initialize @methods = [] end def method_missing(*args, &block) @methods << [args, block] unless args == [:respond_to?, :to_proc]... more »
|
|
Slight improvement
|
| |
I commented on your original blog post, but you also encouraged people to post improvements or suggetsions here, so pardon the crosspost of sorts. I posted a slight improvement[1] to Methodphitamine on my blog. Long story short, I add respond_to? to the list of methods to keep around, which lets you take out the hack in method_missing to detect it being... more »
|
No more topics in this group.
|
|