Sha256: 15f13b639dab066acce995fd389833edc8106b1dd24e55300ea9f10865b3f8b1
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 Bytes
Contents
module Stepmod module Utils module Converters class StepmodExtDescription < ReverseAdoc::Converters::Base def convert(node, state = {}) state = state.merge(schema_name: node['linkend']) linkend = node['linkend'].split('.') # We ignore all the WHERE and IP rules because those are not terms return nil if linkend.last =~ /^wr/ <<~TEMPLATE === #{node['linkend'].split('.').last} <STEP resource> #{treat_children(node, state).strip} TEMPLATE end end ReverseAdoc::Converters.register :ext_description, StepmodExtDescription.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stepmod-utils-0.3.2 | lib/stepmod/utils/converters/stepmod_ext_description.rb |
stepmod-utils-0.3.1 | lib/stepmod/utils/converters/stepmod_ext_description.rb |