Sha256: 018734a45a82f4ce283f1b40faf9bb3286ca4e0242ecea6277b3fba875a3b1b1

Contents?: true

Size: 421 Bytes

Versions: 13

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

require "stepmod/utils/converters/em"

module Stepmod
  module Utils
    module Converters
      class Stem < Stepmod::Utils::Converters::Base
        def convert(node, state = {})
          return Em.new.convert(node, state) if node.text.strip.length > 8

          " stem:[#{node.text.strip}] "
        end
      end

      ReverseAdoc::Converters.register :i, Stem.new
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
stepmod-utils-0.6.6 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.6.5 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.6.3 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.6.2 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.6.1 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.6.0 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.5.0 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.4.14 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.4.13 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.4.12 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.4.11 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.4.10 lib/stepmod/utils/converters/stem.rb
stepmod-utils-0.4.9 lib/stepmod/utils/converters/stem.rb