Class: Cuprum::Cli::Errors::Files::MissingTemplate
- Inherits:
-
Error
- Object
- Error
- Cuprum::Cli::Errors::Files::MissingTemplate
- Defined in:
- lib/cuprum/cli/errors/files/missing_template.rb
Overview
Error returned when unable to load a template.
Constant Summary collapse
- TYPE =
Short string used to identify the type of error.
'cuprum.cli.errors.files.missing_template'
Instance Attribute Summary collapse
-
#template_path ⇒ String
readonly
The expected template path.
Instance Method Summary collapse
-
#initialize(template_path:, message: nil) ⇒ MissingTemplate
constructor
A new instance of MissingTemplate.
Constructor Details
#initialize(template_path:, message: nil) ⇒ MissingTemplate
Returns a new instance of MissingTemplate.
15 16 17 18 19 |
# File 'lib/cuprum/cli/errors/files/missing_template.rb', line 15 def initialize(template_path:, message: nil) @template_path = template_path super(message: (), template_path:) end |
Instance Attribute Details
#template_path ⇒ String (readonly)
Returns the expected template path.
22 23 24 |
# File 'lib/cuprum/cli/errors/files/missing_template.rb', line 22 def template_path @template_path end |