class Infoboxer::Tree::Paragraph
Represents plain text paragraph.
Public Instance Methods
splitter()
click to toggle source
@private Internal, used by {Parser} for merging
# File lib/infoboxer/tree/paragraphs.rb, line 65 def splitter Text.new(' ') end
templates_only?()
click to toggle source
@private Internal, used by {Parser}
# File lib/infoboxer/tree/paragraphs.rb, line 71 def templates_only? children.all? { |c| c.is_a?(Template) || c.is_a?(Text) && c.raw_text.strip.empty? } end
to_templates()
click to toggle source
@private Internal, used by {Parser}
# File lib/infoboxer/tree/paragraphs.rb, line 77 def to_templates children.grep(Template) end
to_templates?()
click to toggle source
@private Internal, used by {Parser}
# File lib/infoboxer/tree/paragraphs.rb, line 83 def to_templates? templates_only? ? to_templates : self end