Sha256: a0a3eb5c9e40567e5f9e3e1dc40214f2041364206706d6045798b0615e51a090

Contents?: true

Size: 592 Bytes

Versions: 28

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true
require_relative "./figure"

module Stepmod
  module Utils
    module Converters
      class ExpressFigure < Stepmod::Utils::Converters::Figure

        # def self.pattern(state, id)
        #   "figure-exp-#{id}"
        # end

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

      ReverseAdoc::Converters.register :express_figure, ExpressFigure.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_figure.rb
stepmod-utils-0.4.13 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.12 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.11 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.10 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.9 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.8 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.7 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.6 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.5 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.2 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.1 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.4.0 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.37 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.36 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.35 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.34 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.33 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.32 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.3.31 lib/stepmod/utils/converters/express_figure.rb