master
You don't have to wait until Ruby 2.0 to get (named|keyword) arguments. Has been tested with 1.8.6 and 1.9.1. Plausible alternative to options hash. — Read more
class A @@about = 'about' class << self def A.go(b = @@about) b end named_args_for :go end end
Here's the doctest:
>> A.go => "about" >> A.go => "about" >> A.go 2 => 2 >> A.go :b => 3 => 3
I'm not sure how but I think my old implementation handled this somehow, so it should be possible somehow or other.
Yeah, it has to do with the scope I think... mmm
Yeah, it has to do with the scope I think... mmm