Class: CaseGen::ExcludeAsText
- Defined in:
- lib/case_gen/output/exclude_as_text.rb
Instance Method Summary collapse
Methods inherited from Output
Methods included from RuleDescription
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 |