Class: State
- Inherits:
-
Object
- Object
- State
- Defined in:
- lib/vimamsa/key_binding_tree.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#children ⇒ Object
Returns the value of attribute children.
-
#cur_mode ⇒ Object
readonly
Returns the value of attribute cur_mode.
-
#cursor_type ⇒ Object
Returns the value of attribute cursor_type.
-
#eval_rule ⇒ Object
Returns the value of attribute eval_rule.
-
#key_name ⇒ Object
Returns the value of attribute key_name.
-
#label ⇒ Object
Returns the value of attribute label.
-
#level ⇒ Object
Returns the value of attribute level.
-
#major_modes ⇒ Object
Returns the value of attribute major_modes.
Instance Method Summary collapse
-
#initialize(key_name, eval_rule = "", ctype = :command) ⇒ State
constructor
A new instance of State.
- #to_s ⇒ Object
Constructor Details
#initialize(key_name, eval_rule = "", ctype = :command) ⇒ State
Returns a new instance of State.
42 43 44 45 46 47 48 49 50 |
# File 'lib/vimamsa/key_binding_tree.rb', line 42 def initialize(key_name, eval_rule = "", ctype = :command) @key_name = key_name @eval_rule = eval_rule @children = [] @major_modes = [] @action = nil @level = 0 @cursor_type = ctype end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def action @action end |
#children ⇒ Object
Returns the value of attribute children.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def children @children end |
#cur_mode ⇒ Object (readonly)
Returns the value of attribute cur_mode.
40 41 42 |
# File 'lib/vimamsa/key_binding_tree.rb', line 40 def cur_mode @cur_mode end |
#cursor_type ⇒ Object
Returns the value of attribute cursor_type.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def cursor_type @cursor_type end |
#eval_rule ⇒ Object
Returns the value of attribute eval_rule.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def eval_rule @eval_rule end |
#key_name ⇒ Object
Returns the value of attribute key_name.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def key_name @key_name end |
#label ⇒ Object
Returns the value of attribute label.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def label @label end |
#level ⇒ Object
Returns the value of attribute level.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def level @level end |
#major_modes ⇒ Object
Returns the value of attribute major_modes.
39 40 41 |
# File 'lib/vimamsa/key_binding_tree.rb', line 39 def major_modes @major_modes end |
Instance Method Details
#to_s ⇒ Object
52 53 54 |
# File 'lib/vimamsa/key_binding_tree.rb', line 52 def to_s() return @key_name end |