Class: CodeParagraphJoiner

Inherits:
ParagraphJoiner show all
Defined in:
lib/notroff/paragraph_joiner.rb

Instance Method Summary collapse

Methods inherited from ParagraphJoiner

#process, #skip?

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

Returns:

  • (Boolean)


56
57
58
59
# File 'lib/notroff/paragraph_joiner.rb', line 56

def join?(paragraph)
  return false unless paragraph[:type] == :code
  true
end