Class: Lingo::Srv
Constant Summary collapse
- LINGO =
Call.new(ARGV).call
- SRC_SEP =
c == true ? Attendee::VectorFilter::DEFAULT_SRC_SEPARATOR : c
Instance Method Summary collapse
Methods inherited from App
init_app, parse_options, rackup, #to_json
Instance Method Details
#doit ⇒ Object
50 51 52 53 54 55 |
# File 'lib/lingo/srv.rb', line 50 def doit to_json(q = params[:q], case q when String then talk(q) when Array then q.inject({}) { |h, k| h[k] = talk(k); h } end) end |