Class: Gettc::ProblemDirExists

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir, message = "Problem directory already exists") ⇒ ProblemDirExists

Returns a new instance of ProblemDirExists.



15
16
17
18
# File 'lib/gettc/generate.rb', line 15

def initialize(dir, message = "Problem directory already exists")
  @dir = dir
  super "#{message}: (#{dir})"
end

Instance Attribute Details

#dirObject

Returns the value of attribute dir.



13
14
15
# File 'lib/gettc/generate.rb', line 13

def dir
  @dir
end