programming-examples/ruby/Data_Structures/node.rb
2019-11-15 12:59:38 +01:00

8 lines
108 B
Ruby

class Node
attr_accessor :data, :next, :previous
def initialize(data = nil)
@data = data
end
end