Exception: Philiprehberger::Template::UndefinedVariableError
- Inherits:
-
StandardError
- Object
- StandardError
- Philiprehberger::Template::UndefinedVariableError
- Defined in:
- lib/philiprehberger/template.rb
Instance Attribute Summary collapse
-
#variable_name ⇒ Object
readonly
Returns the value of attribute variable_name.
Instance Method Summary collapse
-
#initialize(variable_name) ⇒ UndefinedVariableError
constructor
A new instance of UndefinedVariableError.
Constructor Details
#initialize(variable_name) ⇒ UndefinedVariableError
Returns a new instance of UndefinedVariableError.
15 16 17 18 |
# File 'lib/philiprehberger/template.rb', line 15 def initialize(variable_name) @variable_name = variable_name super("Undefined variable: #{variable_name}") end |
Instance Attribute Details
#variable_name ⇒ Object (readonly)
Returns the value of attribute variable_name.
13 14 15 |
# File 'lib/philiprehberger/template.rb', line 13 def variable_name @variable_name end |