vendor/bundle/ruby/2.1.0/gems/faraday_middleware-0.9.0/lib/faraday_middleware/response_middleware.rb
def parse(body)
      if self.class.parser
        begin
          self.class.parser.call(body)
        rescue StandardError, SyntaxError => err
          raise err if err.is_a? SyntaxError and err.class.name != 'Psych::SyntaxError'
          raise Faraday::Error::ParsingError, err
        end
      else
        body
      end
    end
# Parse the response body.
#
# Instead of overriding this method, consider using `define_parser`.
Parse the response body.
Instead of overriding this method, consider using `define_parser`.
Parse the response body . Instead of overriding this method consider using ` define_parser ` .
def parse(body)
      if self.class.parser
        begin
          self.class.parser.call(body)
        rescue StandardError, SyntaxError => err
          raise err if err.is_a? SyntaxError and err.class.name != 'Psych::SyntaxError'
          raise Faraday::Error::ParsingError, err
        end
      else
        body
      end
    end
def parse ( body ) if self . class . parser begin self . class . parser . call ( body ) rescue StandardError , SyntaxError => err raise err if err . is_a? SyntaxError and err . class . name != 'Psych::SyntaxError' raise Faraday :: Error :: ParsingError , err end else body end end
Parse the response body.
Parse the response body .
body