Class: RDoc::Markup::BlankLine

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/markup/blank_line.rb

Overview

An empty line. This class is a singleton.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject

RDoc::Markup::BlankLine is a singleton



11
12
13
# File 'lib/rdoc/markup/blank_line.rb', line 11

def self.new
  @instance
end

Instance Method Details

#accept(visitor) ⇒ Object

Calls #accept_blank_line on visitor



18
19
20
# File 'lib/rdoc/markup/blank_line.rb', line 18

def accept visitor
  visitor.accept_blank_line self
end

#pretty_print(q) ⇒ Object

:nodoc:



22
23
24
# File 'lib/rdoc/markup/blank_line.rb', line 22

def pretty_print q # :nodoc:
  q.text 'blankline'
end