Class: Infoboxer::Tree::BaseParagraph
- Defined in:
- lib/infoboxer/tree/paragraphs.rb
Overview
Base class for all "paragraph-level" nodes: Paragraph, ListItem, Heading. It should be convenient to use it in Node#lookup and similar methods like this:
page.lookup(:BaseParagraph) # => flat list of paragraph-levels
Instance Attribute Summary
Attributes inherited from Compound
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Compound
#index_of, #initialize, #to_tree
Methods inherited from Node
#==, #children, coder, def_readers, #first?, #index, #initialize, #inspect, #next_siblings, #prev_siblings, #siblings, #text_, #to_s, #to_tree
Methods included from Navigation::Wikipath
Methods included from Navigation::Sections::Node
Methods included from Navigation::Shortcuts::Node
#bold?, #categories, #external_links, #heading?, #headings, #images, #infobox, #infoboxes, #italic?, #lists, #paragraphs, #tables, #templates, #wikilinks
Methods included from Navigation::Lookup::Node
#_lookup, #_lookup_children, #_lookup_next_siblings, #_lookup_parents, #_lookup_prev_sibling, #_lookup_prev_siblings, #_lookup_siblings, #_matches?, #lookup, #lookup_children, #lookup_next_siblings, #lookup_parents, #lookup_prev_sibling, #lookup_prev_siblings, #lookup_siblings, #matches?, #parent?
Constructor Details
This class inherits a constructor from Infoboxer::Tree::Compound
Instance Method Details
#text ⇒ Object
13 14 15 |
# File 'lib/infoboxer/tree/paragraphs.rb', line 13 def text super.strip + "\n\n" end |