Class: RDoc::Markup::IndentedParagraph
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
RDoc::Markup::Raw
|
| Defined in: | lib/rdoc/markup/indented_paragraph.rb |
Overview
An Indented Paragraph of text
Class Method Summary
-
.new(indent, *parts) ⇒ IndentedParagraph
constructor
Creates a new
IndentedParagraphcontainingpartsindented with #indent spaces.
Raw - Inherited
Instance Attribute Summary
Instance Method Summary
-
#accept(visitor)
Calls
#accept_indented_paragraphonvisitor -
#text(hard_break = nil)
Joins the raw paragraph text and converts inline HardBreaks to the
hard_breaktext followed by the indent. - #==(other) Internal use only
Raw - Inherited
| #<< | Appends #text : (String) -> void. |
| #accept | Calls |
| #merge | Appends |
| #push | Appends |
| #text | The raw text : () -> String. |
| #== | : (top) -> bool. |
| #pretty_print | : (PP) -> void. |
Element - Inherited
| #accept | : (untyped) -> void. |
| #pretty_print | : (PP) -> void. |
Constructor Details
.new(indent, *parts) ⇒ IndentedParagraph
Creates a new IndentedParagraph containing parts indented with #indent
spaces
Instance Attribute Details
#indent (readonly)
The indent in number of spaces
# File 'lib/rdoc/markup/indented_paragraph.rb', line 12
attr_reader :indent
Instance Method Details
#==(other)
#accept(visitor)
Calls #accept_indented_paragraph on visitor
# File 'lib/rdoc/markup/indented_paragraph.rb', line 31
def accept(visitor) visitor.accept_indented_paragraph self end
#text(hard_break = nil)
Joins the raw paragraph text and converts inline HardBreaks to the
hard_break text followed by the indent.