Class: Ports::Portfile
- Inherits:
-
Object
- Object
- Ports::Portfile
- Defined in:
- lib/port_upgrade.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Portfile
constructor
A new instance of Portfile.
- #version ⇒ Object
Constructor Details
#initialize(path) ⇒ Portfile
Returns a new instance of Portfile.
464 465 466 467 |
# File 'lib/port_upgrade.rb', line 464 def initialize(path) raise Errno::ENOENT if (File.file?(path) == false or File.readable?(path) == false) @path = path end |
Instance Method Details
#version ⇒ Object
469 470 471 |
# File 'lib/port_upgrade.rb', line 469 def version @version ||= find_vers end |