Class: RDoc::Markup::HardBreak
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Element
|
|
|
Instance Chain:
self,
Element
|
|
| Inherits: |
RDoc::Markup::Element
|
| Defined in: | lib/rdoc/markup/hard_break.rb |
Overview
A hard-break in the middle of a paragraph.
Class Method Summary
-
.new ⇒ HardBreak
constructor
HardBreakis a singleton : () ->HardBreak.
Instance Method Summary
-
#accept(visitor)
Calls
#accept_hard_breakonvisitor: (untyped) -> void. -
#==(other)
Internal use only
: (top) -> bool.
-
#pretty_print(q)
Internal use only
: (PP) -> void.
Element - Inherited
| #accept | : (untyped) -> void. |
| #pretty_print | : (PP) -> void. |
Constructor Details
.new ⇒ HardBreak
HardBreak is a singleton : () -> HardBreak
# File 'lib/rdoc/markup/hard_break.rb', line 11
def self.new @instance end
Instance Method Details
#==(other)
This method is for internal use only.
: (top) -> bool
# File 'lib/rdoc/markup/hard_break.rb', line 23
def ==(other) # :nodoc: self.class === other end
#accept(visitor)
Calls #accept_hard_break on visitor : (untyped) -> void
# File 'lib/rdoc/markup/hard_break.rb', line 18
def accept(visitor) visitor.accept_hard_break(self) end
#pretty_print(q)
This method is for internal use only.
: (PP) -> void
# File 'lib/rdoc/markup/hard_break.rb', line 29
def pretty_print(q) # :nodoc: q.text("[break]") end