Class: Algorithms::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



21
22
23
# File 'lib/containers/splay_tree_map.rb', line 21

def key
  @key
end

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



21
22
23
# File 'lib/containers/splay_tree_map.rb', line 21

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



21
22
23
# File 'lib/containers/splay_tree_map.rb', line 21

def right
  @right
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



21
22
23
# File 'lib/containers/splay_tree_map.rb', line 21

def value
  @value
end