Exception: Container::KeyNotFoundError

Inherits:
KeyError
  • Object
show all
Defined in:
lib/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/container.rb', line 3

def key
  @key
end