Skip to content

Commit 4c9b663

Browse files
mterada1228kou
andauthored
Apply suggestions from code review
Co-authored-by: Sutou Kouhei <[email protected]>
1 parent 4681de5 commit 4c9b663

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/rdoc/rubygems_hook.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ class RubygemsHook
273273

274274
attr_accessor :generate_rdoc, :generate_ri, :force
275275

276-
class << self
277-
attr_accessor :rdoc_version
278-
end
279-
280276
def self.default_gem?
281277
!File.exist?(File.join(__dir__, "..", "rubygems_plugin.rb"))
282278
end
@@ -316,7 +312,11 @@ def self.generation_hook installer, specs
316312
end
317313

318314
def self.load_rdoc
319-
@rdoc_version = RubyGemsHook.load_rdoc
315+
RubyGemsHook.load_rdoc
316+
end
317+
318+
def self.rdoc_version
319+
RubyGemsHook.rdoc_version
320320
end
321321
end
322322
end

0 commit comments

Comments
 (0)