Sha256: 6d7210cdc79543f624c9cc222392ee349298fa0dfe6350165eec764ceafbab3f
Contents?: true
Size: 410 Bytes
Versions: 14
Compression:
Stored size: 410 Bytes
Contents
# encoding: utf-8 require 'faraday' module Github class Response::Xmlize < Response dependency 'nokogiri' define_parser do |body| ::Nokogiri::XML body end def parse(body) case body when '' nil when 'true' true when 'false' false else self.class.parser.call(body) end end end # Response::Xmlize end # Github
Version data entries
14 entries across 14 versions & 2 rubygems