Class: State

Inherits:
Object
  • Object
show all
Defined in:
lib/vimamsa/key_binding_tree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_name, eval_rule = "") ⇒ State

Returns a new instance of State.



41
42
43
44
45
46
47
48
# File 'lib/vimamsa/key_binding_tree.rb', line 41

def initialize(key_name, eval_rule = "")
  @key_name = key_name
  @eval_rule = eval_rule
  @children = []
  @major_modes = []
  @action = nil
  @level = 0
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



39
40
41
# File 'lib/vimamsa/key_binding_tree.rb', line 39

def action
  @action
end

#childrenObject

Returns the value of attribute children.



39
40
41
# File 'lib/vimamsa/key_binding_tree.rb', line 39

def children
  @children
end

#eval_ruleObject

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_nameObject

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

#labelObject

Returns the value of attribute label.



39
40
41
# File 'lib/vimamsa/key_binding_tree.rb', line 39

def label
  @label
end

#levelObject

Returns the value of attribute level.



39
40
41
# File 'lib/vimamsa/key_binding_tree.rb', line 39

def level
  @level
end

#major_modesObject

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_sObject



50
51
52
# File 'lib/vimamsa/key_binding_tree.rb', line 50

def to_s()
  return @key_name
end