lib/stepmod/utils/converters/stepmod_ext_description.rb in stepmod-utils-0.3.0 vs lib/stepmod/utils/converters/stepmod_ext_description.rb in stepmod-utils-0.3.1
- old
+ new
@@ -2,9 +2,14 @@
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