Module: TaskwarriorWeb::Parser::Json
- Defined in:
- lib/taskwarrior-web/services/parser/json.rb
Class Method Summary collapse
Class Method Details
.parse(json) ⇒ Object
4 5 6 7 |
# File 'lib/taskwarrior-web/services/parser/json.rb', line 4 def self.parse(json) json.strip! json == '[No matches.]' ? [] : ::JSON.parse(json) end |