Skip to content

Commit 76283fc

Browse files
committed
Fix RDoc::Parser::Ruby not being documented
The calls to require prevent the class from being documented.
1 parent 3cd826b commit 76283fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rdoc/parser/ruby.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# by Keiju ISHITSUKA (Nippon Rational Inc.)
99
#
1010

11+
require 'ripper'
12+
require_relative 'ripper_state_lex'
13+
1114
##
1215
# Extracts code elements from a source file returning a TopLevel object
1316
# containing the constituent file elements.
@@ -138,9 +141,6 @@
138141
# Note that by default, the :method: directive will be ignored if there is a
139142
# standard rdocable item following it.
140143

141-
require 'ripper'
142-
require_relative 'ripper_state_lex'
143-
144144
class RDoc::Parser::Ruby < RDoc::Parser
145145

146146
parse_files_matching(/\.rbw?$/)

0 commit comments

Comments
 (0)