class ContentfulConverter::Nodes::Header

Public Instance Methods

needs_p_wrapping?() click to toggle source
# File lib/contentful_converter/nodes/header.rb, line 8
def needs_p_wrapping?
  false
end

Private Instance Methods

header_size() click to toggle source
# File lib/contentful_converter/nodes/header.rb, line 18
def header_size
  nokogiri_node.name.split('h').last
end
type() click to toggle source
# File lib/contentful_converter/nodes/header.rb, line 14
def type
  "heading-#{header_size}"
end