Class: CaseGen::ExcludeInlineFootnotes

Inherits:
Output
  • Object
show all
Defined in:
lib/case_gen/output/exclude_inline_footnotes.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_description(rule) ⇒ Object



9
10
11
# File 'lib/case_gen/output/exclude_inline_footnotes.rb', line 9

def exclude_description(rule)
  "[#{rule.rule_data[:index]}]"
end

#exclude_output(_) ⇒ Object



13
14
15
16
17
18
# File 'lib/case_gen/output/exclude_inline_footnotes.rb', line 13

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

#partition_exclusions?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/case_gen/output/exclude_inline_footnotes.rb', line 5

def partition_exclusions?
  false
end