Class: CaseGen::ExcludeAsText

Inherits:
Output
  • Object
show all
Defined in:
lib/case_gen/output/exclude_as_text.rb

Instance Method Summary collapse

Methods inherited from Output

create, #initialize, #to_s

Methods included from RuleDescription

#rule_description

Constructor Details

This class inherits a constructor from CaseGen::Output

Instance Method Details

#exclude_output(_) ⇒ Object



5
6
7
8
9
10
# File 'lib/case_gen/output/exclude_as_text.rb', line 5

def exclude_output(_)
  body = @generator.rules[:exclude].map do |rule|
    [rule[:criteria], "  #{rule_description(rule)}", '']
  end
  (header + body).join("\n")
end