Class: Gettc::ProblemDirExists
- Inherits:
-
GenerateError
- Object
- Gettc::ProblemDirExists
- Defined in:
- lib/gettc/generate.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
Instance Method Summary collapse
-
#initialize(dir, message = "Problem directory already exists") ⇒ ProblemDirExists
constructor
A new instance of ProblemDirExists.
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, = "Problem directory already exists") @dir = dir super "#{message}: (#{dir})" end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
13 14 15 |
# File 'lib/gettc/generate.rb', line 13 def dir @dir end |