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