Class: Diakonos::Mode
Instance Attribute Summary (collapse)
-
- (Object) keymap
readonly
Returns the value of attribute keymap.
-
- (Object) keymap_after
readonly
Returns the value of attribute keymap_after.
-
- (Object) window
Returns the value of attribute window.
Instance Method Summary (collapse)
-
- (Mode) initialize
constructor
A new instance of Mode.
Constructor Details
- (Mode) initialize
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 |