Class: Stepmod::Utils::Converters::Stem

Inherits:
Base
  • Object
show all
Defined in:
lib/stepmod/utils/converters/stem.rb

Constant Summary

Constants inherited from Base

Base::PREFIXES_REGEX

Instance Method Summary collapse

Methods inherited from Base

#treat_children

Instance Method Details

#convert(node, state = {}) ⇒ Object



9
10
11
12
13
# File 'lib/stepmod/utils/converters/stem.rb', line 9

def convert(node, state = {})
  return Em.new.convert(node, state) if node.text.strip.length > 8

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