Class: Shoe::LocalDocManager

Inherits:
Gem::DocManager
  • Object
show all
Defined in:
lib/shoe.rb

Overview

Using Gem::DocManager instead of Rake::RDocTask means you get to see your rdoc exactly as users who install your gem will.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec) ⇒ LocalDocManager

:nodoc:



123
124
125
126
127
128
# File 'lib/shoe.rb', line 123

def initialize(spec)
  @spec      = spec
  @doc_dir   = Dir.pwd
  @rdoc_args = []
  adjust_spec_so_that_we_can_generate_rdoc_locally
end

Class Method Details

.full_gem_pathObject



131
132
133
# File 'lib/shoe.rb', line 131

def @spec.full_gem_path
  Dir.pwd
end

Instance Method Details

#adjust_spec_so_that_we_can_generate_rdoc_locallyObject



130
131
132
133
134
# File 'lib/shoe.rb', line 130

def adjust_spec_so_that_we_can_generate_rdoc_locally
  def @spec.full_gem_path
    Dir.pwd
  end
end