Skip to content

Commit 03e1f28

Browse files
committed
add rdoc_installed? and ri_installed?
1 parent 4c9b663 commit 03e1f28

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/rdoc/rubygems_hook.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,13 @@ def self.load_rdoc
318318
def self.rdoc_version
319319
RubyGemsHook.rdoc_version
320320
end
321+
322+
def rdoc_installed?
323+
RubyGemsHook.new(@spec).rdoc_installed?
324+
end
325+
326+
def ri_installed?
327+
RubyGemsHook.new(@spec).ri_installed?
328+
end
321329
end
322330
end

0 commit comments

Comments
 (0)