Module: MethodMixin
- Defined in:
- lib/method_args.rb
Instance Method Summary collapse
Instance Method Details
#args(trying_load = false) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/method_args.rb', line 6 def args( = false) if ! && respond_to?(:source_location) && !owner.const_defined?(:ArgList, false) file, line = source_location MethodArgs.load(file, false) end self.args = owner.const_get(:ArgList)[name.to_sym] end |
#args=(a) ⇒ Object
14 15 16 17 18 |
# File 'lib/method_args.rb', line 14 def args=(a) @args = a.clone @args.owning_method = self @args end |