Module: Alf::Shell::Operator::InstanceMethods
- Extended by:
- Forwardable
- Defined in:
- lib/alf/shell/operator.rb
Instance Method Summary collapse
Instance Method Details
#compile(argv) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/alf/shell/operator.rb', line 37 def compile(argv) operands, args, = signature.argv2args(argv) operands = operands(operands, operator_class.arity) init_args = [operands] + args + [] operator_class.new(*init_args) end |
#run(argv, req = nil) ⇒ Object
32 33 34 35 |
# File 'lib/alf/shell/operator.rb', line 32 def run(argv, req = nil) @requester = req compile(argv) end |