Class: Stepmod::Utils::Converters::ExpressRefExpressDescription

Inherits:
Base
  • Object
show all
Defined in:
lib/stepmod/utils/converters/express_ref_express_description.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



5
6
7
8
# File 'lib/stepmod/utils/converters/express_ref_express_description.rb', line 5

def convert(node, _state = {})
  parts = node["linkend"].to_s.split(":").last.split(".")
  "<<express:#{parts.join('.').strip},#{parts.last.strip}>>"
end