Class: Gettc::SourceDirNotExist

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir, message = "Source directory does not exist") ⇒ SourceDirNotExist

Returns a new instance of SourceDirNotExist.



24
25
26
27
# File 'lib/gettc/generate.rb', line 24

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

Instance Attribute Details

#dirObject

Returns the value of attribute dir.



22
23
24
# File 'lib/gettc/generate.rb', line 22

def dir
  @dir
end