Class: CodeParagraphJoiner
- Inherits:
-
ParagraphJoiner
- Object
- ParagraphJoiner
- CodeParagraphJoiner
- Defined in:
- lib/notroff/paragraph_joiner.rb
Instance Method Summary collapse
Methods inherited from ParagraphJoiner
Instance Method Details
#join(first, second) ⇒ Object
52 53 54 |
# File 'lib/notroff/paragraph_joiner.rb', line 52 def join(first, second) first + "\n" + second end |
#join?(paragraph) ⇒ Boolean
56 57 58 59 |
# File 'lib/notroff/paragraph_joiner.rb', line 56 def join?(paragraph) return false unless paragraph[:type] == :code true end |