123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

Element - Inherited

#accept

: (untyped) -> void.

#pretty_print

: (PP) -> void.

Constructor Details

.newHardBreak

HardBreak is a singleton : () -> HardBreak

[ GitHub ]

  
# 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

[ GitHub ]

  
# 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

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'lib/rdoc/markup/hard_break.rb', line 29

def pretty_print(q) # :nodoc:
  q.text("[break]")
end