Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/spectre/http.rb
Instance Method Summary collapse
Instance Method Details
#pick(path) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/spectre/http.rb', line 12 def pick path raise ArgumentError, "`path' must not be nil or empty" if path.nil? or path.empty? begin JsonPath.on(self, path) rescue MultiJson::ParseError # do nothing and return nil end end |