Class: Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/gema6/node.rb

Overview

Create a Struct with :value and :next

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



2
3
4
# File 'lib/gema6/node.rb', line 2

def next
  @next
end

#previousObject

Returns the value of attribute previous

Returns:

  • (Object)

    the current value of previous



2
3
4
# File 'lib/gema6/node.rb', line 2

def previous
  @previous
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2
3
4
# File 'lib/gema6/node.rb', line 2

def value
  @value
end