Sha256: dd64ea72cf131ae2f983e7c0011ec7550febf1f5058634b22332573d5bd5f39f
Contents?: true
Size: 354 Bytes
Versions: 4
Compression:
Stored size: 354 Bytes
Contents
require "nori/version" require "nori/core_ext" require "nori/parser" module Nori # Translates the given +xml+ to a Hash. Accepts an optional +parser+ to use. def self.parse(xml, parser = nil) return {} if xml.blank? Parser.parse xml, parser end # Sets the +parser+ to use. def self.parser=(parser) Parser.use = parser end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nori-0.2.3 | lib/nori.rb |
nori-0.2.2 | lib/nori.rb |
nori-0.2.1 | lib/nori.rb |
nori-0.2.0 | lib/nori.rb |