Class: BasicBlock::Note
- Inherits:
-
Object
- Object
- BasicBlock::Note
- Defined in:
- lib/relaton_iec/basic_block/note.rb
Instance Method Summary collapse
-
#initialize(id:, content:) ⇒ Note
constructor
A new instance of Note.
- #to_xml(builder) ⇒ Object
Constructor Details
#initialize(id:, content:) ⇒ Note
Returns a new instance of Note.
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
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 |