Class: Manpages::Install
- Inherits:
-
Object
- Object
- Manpages::Install
- Defined in:
- lib/manpages/install.rb
Instance Method Summary collapse
-
#initialize(gem_spec, gem_dir, target_dir) ⇒ Install
constructor
A new instance of Install.
- #install_manpages ⇒ Object
Constructor Details
#initialize(gem_spec, gem_dir, target_dir) ⇒ Install
Returns a new instance of Install.
5 6 7 8 9 |
# File 'lib/manpages/install.rb', line 5 def initialize(gem_spec, gem_dir, target_dir) @gem_spec = gem_spec @gem_dir = gem_dir @target_dir = target_dir end |
Instance Method Details
#install_manpages ⇒ Object
11 12 13 |
# File 'lib/manpages/install.rb', line 11 def install_manpages link_manpages if GemVersion.new(@gem_spec).latest? end |