123456789_123456789_123456789_123456789_123456789_

Class: RDoc::Markup::HardBreak

Relationships & Source Files
Inherits: Object
Defined in: lib/rdoc/markup/hard_break.rb

Overview

A hard-break in the middle of a paragraph.

Class Method Summary

Instance Method Summary

Constructor Details

.newHardBreak

HardBreak is a singleton

[ GitHub ]

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

def self.new
  @instance
end

Instance Method Details

#==(other)

This method is for internal use only.
[ 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

[ GitHub ]

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

def accept visitor
  visitor.accept_hard_break self
end

#pretty_print(q)

This method is for internal use only.
[ GitHub ]

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

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