Exception: Twterm::KeyMapper::NoSuchKey

Inherits:
StandardError
  • Object
show all
Defined in:
lib/twterm/key_mapper/no_such_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message)
end

Instance Attribute Details

#keyObject (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

#messageObject



11
12
13
# File 'lib/twterm/key_mapper/no_such_key.rb', line 11

def message
  "No such key: #{key}"
end