class ContentfulConverter::Nodes::Paragraph

Public Instance Methods

needs_p_wrapping?() click to toggle source
# File lib/contentful_converter/nodes/paragraph.rb, line 8
def needs_p_wrapping?
  false
end
to_h(params = {}) click to toggle source
Calls superclass method ContentfulConverter::Nodes::Base#to_h
# File lib/contentful_converter/nodes/paragraph.rb, line 12
def to_h(params = {})
  super
  return nil if params[:content].empty?

  params
end

Private Instance Methods

type() click to toggle source
# File lib/contentful_converter/nodes/paragraph.rb, line 21
def type
  'paragraph'
end