Class: Diakonos::Mode

Inherits:
Object show all
Defined in:
lib/diakonos/mode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMode

Returns a new instance of Mode.



5
6
7
8
9
10
11
# File 'lib/diakonos/mode.rb', line 5

def initialize
  @keymap = Hash.new.extend( KeyMap )
  # keys of @keymap_after are Strings of Diakonos functions
  @keymap_after = Hash.new { |h,k|
    h[k] = Hash.new.extend( KeyMap )
  }
end

Instance Attribute Details

#keymapObject (readonly)

Returns the value of attribute keymap.



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

def keymap
  @keymap
end

#keymap_afterObject (readonly)

Returns the value of attribute keymap_after.



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

def keymap_after
  @keymap_after
end

#windowObject

Returns the value of attribute window.



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

def window
  @window
end