Class: MethodArgsHelper
- Inherits:
-
Object
- Object
- MethodArgsHelper
- Defined in:
- lib/method_args.rb
Constant Summary collapse
- @@last_args =
nil
Class Method Summary collapse
Class Method Details
.get_args(sig) ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/method_args.rb', line 107 def self.get_args(sig) class_eval "def tester(\#{sig})\nend\n" @@last_args end |
.method_added(meth) ⇒ Object
96 97 98 99 100 101 102 103 104 105 |
# File 'lib/method_args.rb', line 96 def self.method_added(meth) begin o = self.allocate rescue Exception p $! end ma = MethodArgs.new ma.output_method_info(self, o, meth, false) @@last_args = ma.params end |