Class: NPG::PGHandle
Instance Method Summary collapse
-
#initialize(path) ⇒ PGHandle
constructor
A new instance of PGHandle.
Methods inherited from Directory
Constructor Details
#initialize(path) ⇒ PGHandle
Returns a new instance of PGHandle.
13 14 15 16 17 18 19 20 21 |
# File 'lib/npg/project.rb', line 13 def initialize(path) @path = path unless FileTest.directory?(path) if FileTest.file?(path) raise Errno::EEXIST, path end Dir.mkdir path end end |