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