Class: Containers::RubySplayTreeMap::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/containers/splay_tree_map.rb

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



19
20
21
# File 'lib/containers/splay_tree_map.rb', line 19

def key
  @key
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



19
20
21
# File 'lib/containers/splay_tree_map.rb', line 19

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



19
20
21
# File 'lib/containers/splay_tree_map.rb', line 19

def right
  @right
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



19
20
21
# File 'lib/containers/splay_tree_map.rb', line 19

def value
  @value
end