Class: Shoe::LocalDocManager
- Inherits:
-
Gem::DocManager
- Object
- Gem::DocManager
- Shoe::LocalDocManager
- 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
- #adjust_spec_so_that_we_can_generate_rdoc_locally ⇒ Object
-
#initialize(spec) ⇒ LocalDocManager
constructor
:nodoc:.
Constructor Details
#initialize(spec) ⇒ LocalDocManager
:nodoc:
136 137 138 139 140 141 |
# File 'lib/shoe.rb', line 136 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_path ⇒ Object
144 145 146 |
# File 'lib/shoe.rb', line 144 def @spec.full_gem_path Dir.pwd end |
Instance Method Details
#adjust_spec_so_that_we_can_generate_rdoc_locally ⇒ Object
143 144 145 146 147 |
# File 'lib/shoe.rb', line 143 def adjust_spec_so_that_we_can_generate_rdoc_locally def @spec.full_gem_path Dir.pwd end end |