programming-examples/ruby/Data_Structures/node.rb

8 lines
108 B
Ruby
Raw Normal View History

2019-11-15 12:59:38 +01:00
class Node
attr_accessor :data, :next, :previous
def initialize(data = nil)
@data = data
end
end