Exception: Yay::UnresolvedSubstitutionError
- Defined in:
- lib/yay/errors.rb
Instance Attribute Summary collapse
-
#variable ⇒ Object
readonly
Returns the value of attribute variable.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(variable) ⇒ UnresolvedSubstitutionError
constructor
A new instance of UnresolvedSubstitutionError.
- #printable_message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(variable) ⇒ UnresolvedSubstitutionError
Returns a new instance of UnresolvedSubstitutionError.
64 65 66 |
# File 'lib/yay/errors.rb', line 64 def initialize variable @variable = variable end |
Instance Attribute Details
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
62 63 64 |
# File 'lib/yay/errors.rb', line 62 def variable @variable end |
Instance Method Details
#printable_message ⇒ Object
68 69 70 |
# File 'lib/yay/errors.rb', line 68 def return "The variable #{variable} is being used but hasn't been set #{printable_position}" end |