Class: Node

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

Overview

create a Struct with :value and :next

Instance Attribute Summary collapse

Instance Attribute Details

#beforeObject

Returns the value of attribute before

Returns:

  • (Object)

    the current value of before



3
4
5
# File 'lib/prct06/prct06.rb', line 3

def before
  @before
end

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



3
4
5
# File 'lib/prct06/prct06.rb', line 3

def next
  @next
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/prct06/prct06.rb', line 3

def value
  @value
end