Class: Gettc::TargetDirNotExist

Inherits:
GenerateError
  • Object
show all
Defined in:
lib/gettc/generate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir, message = "Target directory does not exist") ⇒ TargetDirNotExist

Returns a new instance of TargetDirNotExist.



33
34
35
36
# File 'lib/gettc/generate.rb', line 33

def initialize(dir, message = "Target directory does not exist")
  @dir = dir
  super "#{message}: (#{dir})"
end

Instance Attribute Details

#dirObject

Returns the value of attribute dir.



31
32
33
# File 'lib/gettc/generate.rb', line 31

def dir
  @dir
end