Sha256: 5f13292dbdc444c7728d1b98e030b6b0171f16463203350cb55316755416d930

Contents?: true

Size: 458 Bytes

Versions: 16

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require "reverse_adoc/converters/figure"

module Stepmod
  module Utils
    module Converters
      class Figure < ReverseAdoc::Converters::Figure
        def convert(node, state = {})
          # If we want to skip this node
          return "" if state[:no_notes_examples]

          super
        end
      end
      # This replaces the converter
      ReverseAdoc::Converters.register :figure, Figure.new
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
stepmod-utils-0.3.22 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.21 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.20 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.19 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.18 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.17 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.16 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.15 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.14 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.13 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.12 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.11 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.10 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.9 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.8 lib/stepmod/utils/converters/figure.rb
stepmod-utils-0.3.7 lib/stepmod/utils/converters/figure.rb