Module: Arguments
- Defined in:
- lib/__arguments__.rb,
lib/__arguments__/version.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Method Summary collapse
Instance Method Details
#__arguments__(bdg) ⇒ Object
2 3 4 5 |
# File 'lib/__arguments__.rb', line 2 def __arguments__(bdg) method_symbol = caller(1,1).first.match(/\`(?<name>[^']*)'/)[:name].to_sym self.method(method_symbol).parameters.map { |e| [e[1], bdg.local_variable_get(e[1])] } end |