Archived. Association provided binary associations between objects using Ruby's
>>operator. The concept of linked lists and associative relations is better served by Ruby's built-in data structures today. This repository is preserved for historical reference.
General binary association allows one object to be associated with another. It has a variety of uses: link-lists, simple ordered maps and mixed collections.
:Apple >> :Fruit
:Apple >> :Red
:Apple.associations #=> [:Fruit, :Red]
c = [:a >> 1, :b >> 2]
c.each { |k,v| puts "#{k} associated with #{v}" }Copyright (c) 2005 Thomas Sawyer
Ruby License.