module Arguments
Constants
- VERSION
Public Instance Methods
__arguments__(bdg)
click to toggle source
Returns an array indicating the arguments given tothe current method.
@param bdg [Binding] binding in the current scope @return [Array] array of 2-element arrys of the form `[symbol, value]`
# File lib/__arguments__.rb, line 6 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