Class: BasicBlock::Table::Tr

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton_iec/basic_block/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Tr

Returns a new instance of Tr.

Parameters:



52
53
54
# File 'lib/relaton_iec/basic_block/table.rb', line 52

def initialize(content)
  @content = content
end

Instance Method Details

#to_xml(builder) ⇒ Object

Parameters:

  • builder (Nokogiri::XML::Builder)


57
58
59
60
61
# File 'lib/relaton_iec/basic_block/table.rb', line 57

def to_xml(builder)
  builder.tr do |b|
    @content.each { |c| c.to_xm b }
  end
end