Sha256: a186f51c8badc1c01ac4253a2a91fdfd9cc68a604a15c7cfe3f3fc606c7a3bb6
Contents?: true
Size: 536 Bytes
Versions: 9
Compression:
Stored size: 536 Bytes
Contents
module Nokogiri module XML class Reader include Enumerable attr_accessor :errors attr_reader :encoding def initialize url = nil, encoding = nil @errors = [] @encoding = encoding end def attributes Hash[*(attribute_nodes.map { |node| [node.name, node.to_s] }.flatten)].merge(namespaces || {}) end def each(&block) while node = self.read block.call(node) end end private :initialize end end end
Version data entries
9 entries across 9 versions & 1 rubygems