Sha256: e6444bc5de0e103ad0a01f33cedd14fa92d4e5db9779b19d2faf14002f4c298f

Contents?: true

Size: 463 Bytes

Versions: 9

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module DocTemplate
  module Tags
    class TableTag < BaseTag
      def parse(node, opts = {})
        unless (table = node.ancestors('table').first)
          raise ::Lcms::Engine::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

9 entries across 9 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 lib/doc_template/tags/table_tag.rb
lcms-engine-0.5.4 lib/doc_template/tags/table_tag.rb
lcms-engine-0.5.3 lib/doc_template/tags/table_tag.rb
lcms-engine-0.5.2 lib/doc_template/tags/table_tag.rb
lcms-engine-0.5.1 lib/doc_template/tags/table_tag.rb
lcms-engine-0.5.0 lib/doc_template/tags/table_tag.rb
lcms-engine-0.4.2 lib/doc_template/tags/table_tag.rb
lcms-engine-0.4.1 lib/doc_template/tags/table_tag.rb
lcms-engine-0.4.0 lib/doc_template/tags/table_tag.rb