Class: LSL::ExecutionStrategy::Eval

Inherits:
Base show all
Defined in:
lib/lsl.rb

Instance Method Summary collapse

Instance Method Details

#call(cmd) ⇒ Object



54
55
56
# File 'lib/lsl.rb', line 54

def call(cmd)
  eval(str(cmd))
end

#str(cmd) ⇒ Object



51
52
53
# File 'lib/lsl.rb', line 51

def str(cmd)
  "#{cmd.ex} " + cmd.args.map { |x| x.quoted }.join(" ")
end