Exception: Twterm::KeyMapper::NoSuchKey
- Inherits:
-
StandardError
- Object
- StandardError
- Twterm::KeyMapper::NoSuchKey
- Defined in:
- lib/twterm/key_mapper/no_such_key.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ NoSuchKey
constructor
A new instance of NoSuchKey.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ NoSuchKey
Returns a new instance of NoSuchKey.
6 7 8 9 |
# File 'lib/twterm/key_mapper/no_such_key.rb', line 6 def initialize(key) @key = key super() end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/twterm/key_mapper/no_such_key.rb', line 4 def key @key end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/twterm/key_mapper/no_such_key.rb', line 11 def "No such key: #{key}" end |