Class: NPG::PGHandle

Inherits:
Directory show all
Defined in:
lib/npg/project.rb

Instance Method Summary collapse

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