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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sequenceObject

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



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

def sequence
  @sequence
end

Instance Method Details

#to_sObject



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

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