Exception: Yay::AlreadyAssignedError
- 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) ⇒ AlreadyAssignedError
constructor
A new instance of AlreadyAssignedError.
- #printable_message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(variable) ⇒ AlreadyAssignedError
Returns a new instance of AlreadyAssignedError.
24 25 26 |
# File 'lib/yay/errors.rb', line 24 def initialize variable @variable = variable end |
Instance Attribute Details
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
22 23 24 |
# File 'lib/yay/errors.rb', line 22 def variable @variable end |
Instance Method Details
#printable_message ⇒ Object
28 29 30 |
# File 'lib/yay/errors.rb', line 28 def return "The variable #{variable} has already been assigned a value#{printable_position}" end |