Sha256: 32e896d5664d329134fc523bd5489e1f6667f8e11d570df27afecf2af68d64ef

Contents?: true

Size: 578 Bytes

Versions: 28

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true
require_relative "./table"

module Stepmod
  module Utils
    module Converters
      class ExpressTable < Stepmod::Utils::Converters::Table

        # def self.pattern(id)
        #   "table-exp-#{id}"
        # end

        def convert(node, state = {})
          <<~TEMPLATE
            (*"#{state[:schema_and_entity]}.__table"
            #{super(node, state.merge(no_notes_examples: nil)).strip}
            *)
          TEMPLATE
        end
      end

      ReverseAdoc::Converters.register :express_table, ExpressTable.new
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
stepmod-utils-0.4.14 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.13 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.12 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.11 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.10 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.9 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.8 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.7 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.6 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.5 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.2 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.1 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.4.0 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.37 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.36 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.35 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.34 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.33 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.32 lib/stepmod/utils/converters/express_table.rb
stepmod-utils-0.3.31 lib/stepmod/utils/converters/express_table.rb