Class: CaseGen::ExcludeInlineFootnotes
- Inherits:
-
Output
- Object
- Output
- CaseGen::ExcludeInlineFootnotes
show all
- Defined in:
- lib/case_gen/output/exclude_inline_footnotes.rb
Instance Method Summary
collapse
Methods inherited from Output
create, #initialize, #to_s
#rule_description
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
( + body).join("\n")
end
|
#partition_exclusions? ⇒ Boolean
5
6
7
|
# File 'lib/case_gen/output/exclude_inline_footnotes.rb', line 5
def partition_exclusions?
false
end
|