Sha256: 736110e9372506c460b16b6ed15715208fc40df34d5ef069e0c8ff6f38e216b2

Contents?: true

Size: 592 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
stepmod-utils-0.6.7 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.6.6 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.6.5 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.6.3 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.6.2 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.6.1 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.6.0 lib/stepmod/utils/converters/express_figure.rb
stepmod-utils-0.5.0 lib/stepmod/utils/converters/express_figure.rb