Class: Diakonos::Mode
Instance Attribute Summary collapse
-
#keymap ⇒ Object
readonly
Returns the value of attribute keymap.
-
#keymap_after ⇒ Object
readonly
Returns the value of attribute keymap_after.
-
#window ⇒ Object
Returns the value of attribute window.
Instance Method Summary collapse
-
#initialize ⇒ Mode
constructor
A new instance of Mode.
Constructor Details
#initialize ⇒ Mode
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
#keymap ⇒ Object (readonly)
Returns the value of attribute keymap.
3 4 5 |
# File 'lib/diakonos/mode.rb', line 3 def keymap @keymap end |
#keymap_after ⇒ Object (readonly)
Returns the value of attribute keymap_after.
3 4 5 |
# File 'lib/diakonos/mode.rb', line 3 def keymap_after @keymap_after end |
#window ⇒ Object
Returns the value of attribute window.
3 4 5 |
# File 'lib/diakonos/mode.rb', line 3 def window @window end |