Class: ContentfulConverter::Nodes::OrderedList

Inherits:
Base
  • Object
show all
Defined in:
lib/contentful_converter/nodes/ordered_list.rb

Instance Attribute Summary

Attributes inherited from Base

#content, #node_type, #nokogiri_node, #parent

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_h

Constructor Details

This class inherits a constructor from ContentfulConverter::Nodes::Base

Instance Method Details

#add_content(node) ⇒ Object



12
13
14
15
16
# File 'lib/contentful_converter/nodes/ordered_list.rb', line 12

def add_content(node)
  return unless node.class == Nodes::ListItem

  super
end

#needs_p_wrapping?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/contentful_converter/nodes/ordered_list.rb', line 8

def needs_p_wrapping?
  false
end