Class: Diakonos::Mode

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Mode) initialize

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

- (Object) keymap (readonly)

Returns the value of attribute keymap



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

def keymap
  @keymap
end

- (Object) keymap_after (readonly)

Returns the value of attribute keymap_after



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

def keymap_after
  @keymap_after
end

- (Object) window

Returns the value of attribute window



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

def window
  @window
end