Class: RubyDoc

Inherits:
Object
  • Object
show all
Defined in:
lib/rubydoc/rubydoc.rb

Constant Summary collapse

SITE =
"http://rubydoc.info"
PREFIX =
"gems"

Class Method Summary collapse

Class Method Details

.url(gem, version = nil, no_frames = nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/rubydoc/rubydoc.rb', line 5

def self.url(gem, version=nil, no_frames=nil)
  url = [SITE, PREFIX, gem, version].compact.join "/" 
  if gem and !no_frames
    url += "/frames"
  end
  url
end