Exception: Cel::NoSuchKeyError
- Inherits:
-
EvaluateError
- Object
- StandardError
- Error
- EvaluateError
- Cel::NoSuchKeyError
- Defined in:
- lib/cel/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(var, attrib) ⇒ NoSuchKeyError
constructor
A new instance of NoSuchKeyError.
Constructor Details
#initialize(var, attrib) ⇒ NoSuchKeyError
Returns a new instance of NoSuchKeyError.
29 30 31 32 |
# File 'lib/cel/errors.rb', line 29 def initialize(var, attrib) super("No such key: #{attrib} in #{var}") @code = :no_such_key end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
27 28 29 |
# File 'lib/cel/errors.rb', line 27 def code @code end |