Class: Manpages::Uninstall
- Inherits:
-
Object
- Object
- Manpages::Uninstall
- Defined in:
- lib/manpages/uninstall.rb
Instance Method Summary collapse
-
#initialize(gem_spec, gem_dir, target_dir) ⇒ Uninstall
constructor
A new instance of Uninstall.
- #uninstall_manpages ⇒ Object
Constructor Details
#initialize(gem_spec, gem_dir, target_dir) ⇒ Uninstall
Returns a new instance of Uninstall.
3 4 5 6 7 |
# File 'lib/manpages/uninstall.rb', line 3 def initialize(gem_spec, gem_dir, target_dir) @gem_spec = gem_spec @gem_dir = gem_dir @target_dir = target_dir end |
Instance Method Details
#uninstall_manpages ⇒ Object
9 10 11 |
# File 'lib/manpages/uninstall.rb', line 9 def uninstall_manpages unlink_manpages if GemVersion.new(@gem_spec).latest? end |