Sha256: 0a739e9e0a7d7660901ac7b492f6457f5fa4559802beecae4a6a87767d25289d

Contents?: true

Size: 387 Bytes

Versions: 26

Compression:

Stored size: 387 Bytes

Contents

module BasicBlock
  class Note
    #
    # @param [String] id
    # @param [Array<BasicBlock::Paragraph>] content
    #
    def initialize(id:, content:)
      @id = id
      @contain = content
    end

    #
    # @param [Nokogiei::XMO::Builder] builder
    #
    def to_xml(builder)
      builder.note id: @id do |b|
        @content.each { |c| c.to_xm b }
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
relaton-iec-1.19.1 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.19.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.18.1 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.18.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.17.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.16.4 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.16.3 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.16.2 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.16.1 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.16.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.14.4 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.14.3 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.14.2 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.14.1 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.14.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.13.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.12.0 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.11.4 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.11.3 lib/relaton_iec/basic_block/note.rb
relaton-iec-1.11.2 lib/relaton_iec/basic_block/note.rb