Exception: Dirwatch::TemplateNotFoundError
- Defined in:
- lib/dirwatch/errors.rb
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template, msg = nil) ⇒ TemplateNotFoundError
constructor
A new instance of TemplateNotFoundError.
Constructor Details
#initialize(template, msg = nil) ⇒ TemplateNotFoundError
Returns a new instance of TemplateNotFoundError.
34 35 36 37 |
# File 'lib/dirwatch/errors.rb', line 34 def initialize template, msg = nil super msg || "Could not find the template #{template}" @template = template end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
33 34 35 |
# File 'lib/dirwatch/errors.rb', line 33 def template @template end |