Class: BasicBlock::Dl::Dt

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

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Dt

Returns a new instance of Dt.

Parameters:



28
29
30
# File 'lib/relaton_iec/basic_block/dl.rb', line 28

def initialize(content)
  @content = content
end

Instance Method Details

#to_xml(builder) ⇒ Object

Parameters:

  • builder (Nokogiri::XML::Builder)


35
36
37
38
39
# File 'lib/relaton_iec/basic_block/dl.rb', line 35

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