2010-04-01 11:45:16 +04:00
|
|
|
##
|
2010-12-20 06:22:49 +03:00
|
|
|
# An empty line. This class is a singleton.
|
2010-04-01 11:45:16 +04:00
|
|
|
|
|
|
|
class RDoc::Markup::BlankLine
|
|
|
|
|
2010-12-20 06:22:49 +03:00
|
|
|
@instance = new
|
|
|
|
|
|
|
|
##
|
|
|
|
# RDoc::Markup::BlankLine is a singleton
|
|
|
|
|
|
|
|
def self.new
|
|
|
|
@instance
|
2010-04-01 11:45:16 +04:00
|
|
|
end
|
|
|
|
|
2010-12-20 06:22:49 +03:00
|
|
|
##
|
|
|
|
# Calls #accept_blank_line on +visitor+
|
|
|
|
|
2010-04-01 11:45:16 +04:00
|
|
|
def accept visitor
|
|
|
|
visitor.accept_blank_line self
|
|
|
|
end
|
|
|
|
|
|
|
|
def pretty_print q # :nodoc:
|
|
|
|
q.text 'blankline'
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|