class Algorithmable::DataStructs::Bag::Node
Attributes
item[RW]
succ[RW]
Public Class Methods
new(item)
click to toggle source
# File lib/algorithmable/data_structs/bag.rb, line 30 def initialize(item) @item = item @succ = nil end
Public Instance Methods
each() { |self| ... }
click to toggle source
# File lib/algorithmable/data_structs/bag.rb, line 35 def each(&block) yield self @succ.each(&block) if @succ end