Sha256: 279d3f85144b19223b9524c8c6e2f4e3f04bb6d85d4ce1a09ead88b693ed2e94

Contents?: true

Size: 416 Bytes

Versions: 85

Compression:

Stored size: 416 Bytes

Contents

##
# A hard-break in the middle of a paragraph.

class RDoc::Markup::HardBreak

  @instance = new

  ##
  # RDoc::Markup::HardBreak is a singleton

  def self.new
    @instance
  end

  ##
  # Calls #accept_hard_break on +visitor+

  def accept visitor
    visitor.accept_hard_break self
  end

  def == other # :nodoc:
    self.class === other
  end

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

end

Version data entries

85 entries across 55 versions & 6 rubygems

Version Path
rdoc-4.0.0 lib/rdoc/markup/hard_break.rb
rdoc-4.0.0.rc.2.1 lib/rdoc/markup/hard_break.rb
rdoc-4.0.0.rc.2 lib/rdoc/markup/hard_break.rb
rdoc-4.0.0.preview2.1 lib/rdoc/markup/hard_break.rb
rdoc-4.0.0.preview2 lib/rdoc/markup/hard_break.rb