Class: VER::Keymap::Results::Impossible

Inherits:
Struct
  • Object
show all
Defined in:
lib/ver/keymap.rb

Overview

Indicate that no result can and will be found in the keymap

Constant Summary

Constants inherited from Struct

Struct::CACHE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

new

Instance Attribute Details

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



7
8
9
# File 'lib/ver/keymap.rb', line 7

def pattern
  @pattern
end

Instance Method Details

#to_sObject



8
9
10
11
# File 'lib/ver/keymap.rb', line 8

def to_s
  stack = pattern.map{|seq| Event[seq].keysym }.join(' - ')
  "#{stack} is undefined"
end