Sha256: d405c6ac7ad89e96adfdd6e4188b6d1c7f80a2059cd97acab2f51dab7dd3d3d0

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module DocTemplate
  module Tags
    class TableTag < BaseTag
      def parse(node, opts = {})
        unless (table = node.ancestors('table').first)
          raise ::DocumentError, "Tag #{self.class::TAG_NAME.upcase} placed outside table"
        end

        @opts = opts
        parse_table table

        self
      end

      def parse_table(_table)
        raise NotImplementedError
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lcms-engine-0.3.1 lib/doc_template/tags/table_tag.rb
lcms-engine-0.1.4 lib/doc_template/tags/table_tag.rb
lcms-engine-0.3.0 lib/doc_template/tags/table_tag.rb
lcms-engine-0.1.3 lib/doc_template/tags/table_tag.rb
lcms-engine-0.2.0 lib/doc_template/tags/table_tag.rb
lcms-engine-0.1.2 lib/doc_template/tags/table_tag.rb
lcms-engine-0.1.0 lib/doc_template/tags/table_tag.rb