class HTML::Pipeline::ParagraphFilter

Public Instance Methods

call() click to toggle source
# File lib/html/pipeline/bungo/paragraph_filter.rb, line 5
def call
  paragraph_filter(@text)
end

Private Instance Methods

paragraph_filter(text) click to toggle source
# File lib/html/pipeline/bungo/paragraph_filter.rb, line 11
def paragraph_filter(text)
  "<p>#{text.gsub(/\r\n|\r|\n/, "</p><p>")}</p>"
end