Class: BasicBlock::Note

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

Instance Method Summary collapse

Constructor Details

#initialize(id:, content:) ⇒ Note

Returns a new instance of Note.

Parameters:



7
8
9
10
# File 'lib/relaton_iec/basic_block/note.rb', line 7

def initialize(id:, content:)
  @id = id
  @contain = content
end

Instance Method Details

#to_xml(builder) ⇒ Object

Parameters:

  • builder (Nokogiei::XMO::Builder)


15
16
17
18
19
# File 'lib/relaton_iec/basic_block/note.rb', line 15

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