class Lingo::Filter::XML
Constants
- TYPE
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/lingo/filter/xml.rb, line 36 def initialize(*args) super @obj = Nokogiri.send(self.class::TYPE, @io, nil, @encoding.to_s) end
Public Instance Methods
each(&block)
click to toggle source
# File lib/lingo/filter/xml.rb, line 41 def each(&block) @obj.root.element_children.each { |n| n.content.each_line(&block) } end