Class: RTF::Converters::HTML::NodeSet

Inherits:
Object
  • Object
show all
Defined in:
lib/rtf/converters/html.rb

Instance Method Summary collapse

Constructor Details

#initialize(nodeset) ⇒ NodeSet

Returns a new instance of NodeSet.



77
78
79
# File 'lib/rtf/converters/html.rb', line 77

def initialize(nodeset)
  @nodeset = nodeset
end

Instance Method Details

#to_rtf(rtf) ⇒ Object



81
82
83
84
85
# File 'lib/rtf/converters/html.rb', line 81

def to_rtf(rtf)
  @nodeset.each do |node|
    Node.new(node).to_rtf(rtf)
  end
end