Class: RDoc::Markup::IndentedParagraph
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Raw
|
|
Instance Chain:
self,
Raw
|
|
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
IndentedParagraph
containingparts
indented with #indent spaces.
Raw
- Inherited
Instance Attribute Summary
-
#indent
readonly
The indent in number of spaces.
Raw
- Inherited
#parts | The component parts of the list. |
Instance Method Summary
-
#accept(visitor)
Calls
#accept_indented_paragraph
onvisitor
-
#text(hard_break = nil)
Joins the raw paragraph text and converts inline HardBreaks to the
hard_break
text followed by the indent. - #==(other) Internal use only
Raw
- Inherited
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 10
attr_reader :indent
Instance Method Details
#==(other)
This method is for internal use only.
[ GitHub ]
#accept(visitor)
Calls #accept_indented_paragraph
on visitor
# File 'lib/rdoc/markup/indented_paragraph.rb', line 29
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.