Class: Gettc::TemplateError
- Inherits:
-
GenerateError
- Object
- Gettc::TemplateError
- Defined in:
- lib/gettc/generate.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
Instance Method Summary collapse
-
#initialize(err, source, message = "Template error") ⇒ TemplateError
constructor
A new instance of TemplateError.
Constructor Details
#initialize(err, source, message = "Template error") ⇒ TemplateError
Returns a new instance of TemplateError.
42 43 44 45 46 |
# File 'lib/gettc/generate.rb', line 42 def initialize(err, source, = "Template error") @err = err @source = source super "#{} (#{source})\n#{err}" end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
40 41 42 |
# File 'lib/gettc/generate.rb', line 40 def dir @dir end |