Report abuse


			
hydra>./shotgun/rubinius spec/language/method_spec.rb                                              
Defining methods with *
-------------------
 - If * by itself is the only param, method takes any number of args that are ignored
 - With a parameter name, * stores all extra arguments as an Array in it
 - A * param may be preceded by any number of other parameter names
 - Only one *param may appear in a parameter list
 - The required arguments must be supplied even with a * param

Defining a singleton method
-------------------
 - should work on an lvar
 - should work on an ivar
 - should work on a gvar
 - should work on a cvar

Defining a method with complex default args
-------------------
 - should let you define a method inside a default argument
 - should let you use an fcall as a default argument
 - should evaluate default arguments in the proper scope
 - should not blow up
 - should support procs as defaults

Defining a singleton method with complex default args
-------------------
 - should let you define a method inside a default argument
 - should let you use an fcall as a default argument
 - should evaluate default arguments in the proper scope
 - should support procs as defaults