Exception: Container::KeyNotFoundError
- Inherits:
-
KeyError
- Object
- KeyError
- Container::KeyNotFoundError
- Defined in:
- lib/container.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ KeyNotFoundError
constructor
A new instance of KeyNotFoundError.
Constructor Details
#initialize(key) ⇒ KeyNotFoundError
Returns a new instance of KeyNotFoundError.
5 6 7 8 |
# File 'lib/container.rb', line 5 def initialize(key) @key = key super end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/container.rb', line 3 def key @key end |