class LSL::Command::Single
Attributes
args[RW]
ex[RW]
inbound_pipe[RW]
options[RW]
raw[RW]
Public Instance Methods
eval?()
click to toggle source
# File lib/lsl/command/single.rb, line 6 def eval? raw[0..0] == "{" end
method()
click to toggle source
# File lib/lsl/command/single.rb, line 15 def method ex.split(".").last end
obj()
click to toggle source
# File lib/lsl/command/single.rb, line 18 def obj a = ex.split(".") (a.size > 1) ? eval(a.first) : nil end
to_h()
click to toggle source
# File lib/lsl/command/single.rb, line 9 def to_h {:ex => ex, :args => args, :options => options} end
url()
click to toggle source
# File lib/lsl/command/single.rb, line 12 def url "http://localhost:4567/#{ex}" + args.map { |x| "/#{x}" }.join end