Skip to content

Commit 630ad43

Browse files
committed
Standardize BlockQuote markup
1 parent 032024b commit 630ad43

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

lib/rdoc/markup/block_quote.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# frozen_string_literal: true
2-
##
3-
# A quoted section which contains markup items.
42

5-
class RDoc::Markup::BlockQuote < RDoc::Markup::Raw
6-
7-
##
8-
# Calls #accept_block_quote on +visitor+
9-
10-
def accept(visitor)
11-
visitor.accept_block_quote self
3+
module RDoc
4+
class Markup
5+
class BlockQuote < Raw
6+
# Calls #accept_block_quote on +visitor+
7+
# @override
8+
#: (untyped) -> void
9+
def accept(visitor)
10+
visitor.accept_block_quote(self)
11+
end
12+
end
1213
end
13-
1414
end

lib/rdoc/markup/raw.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module RDoc
44
class Markup
55
# A section of text that is added to the output document as-is
6-
class Raw
6+
class Raw < Element
77
# The component parts of the list
88
#: Array[String]
99
attr_reader :parts

0 commit comments

Comments
 (0)