Sha256: 4c0f68eebb963688cea5959d9c9f50a286d0e9ada86c48ccfcfd8c39e4e5461c

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

module HTTParty
  module Xml
    def self.parse(body)
      Crack::XML.parse(body)
    end
  end
  
  module Json
    def self.parse(body)
      Crack::JSON.parse(body)
    end
  end
  
  module Yaml
    def self.parse(str)
      ::YAML.load(str)
    end
  end
  
  module Html
    def self.parse(str)
      str
    end
  end
  
  module Text
    def self.parse(str)
      str
    end
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
ddollar-httparty-0.4.6 lib/httparty/parsers.rb
jcinnamond-httparty-0.4.6 lib/httparty/parsers.rb
luigi-httparty-0.4.6 lib/httparty/parsers.rb