Class: RDoc::RD::Inline
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rdoc/rd/inline.rb |
Overview
Inline
keeps track of markup and labels to create proper links.
Class Method Summary
-
.new(rdoc, reference = rdoc) ⇒ Inline
constructor
Creates a new
Inline
for #rdoc and #reference.
Instance Attribute Summary
-
#rdoc
(also: #to_s)
readonly
The markup of this reference in ::RDoc::RDoc format.
-
#reference
readonly
The text of the reference.
Instance Method Summary
-
#append(more)
Appends
more
to this inline. -
#initialize(rdoc, reference) ⇒ Inline
constructor
Initializes the
Inline
with #rdoc andinline
Constructor Details
.new(rdoc, reference = rdoc) ⇒ Inline
Creates a new Inline
for #rdoc and #reference.
#rdoc may be another Inline
or a String. If #reference is not given it will use the text from #rdoc.
#initialize(rdoc, reference) ⇒ Inline
Initializes the Inline
with #rdoc and inline
Instance Attribute Details
#rdoc (readonly) Also known as: #to_s
The markup of this reference in ::RDoc::RDoc format
# File 'lib/rdoc/rd/inline.rb', line 14
attr_reader :rdoc
#reference (readonly)
The text of the reference
# File 'lib/rdoc/rd/inline.rb', line 9
attr_reader :reference
Instance Method Details
#append(more)
Appends more
to this inline. more
may be a String or another Inline
.