A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://rubydoc.info/github/piotrmurach/github/master/Github/Response/Jsonize below:

Jsonize – Documentation for piotrmurach/github (master) – RubyDoc.info

Class: Github::Response::Jsonize Constant Summary Constants inherited from Github::Response

CONTENT_TYPE

Instance Method Summary collapse Methods inherited from Github::Response

define_parser, #initialize, #parse_body?, #parse_response?, #parse_response_type?, #process_body, #response_type

Instance Method Details #parse(body) ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/github_api/response/jsonize.rb', line 15

def parse(body)
  case body
  when ''
    nil
  when 'true'
    true
  when 'false'
    false
  else
    self.class.parser.call(body)
  end
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4