Git Product home page Git Product logo

association's Introduction

= Association

  http://death.rubyforge.org


== DESCRIPTION

General binary associations allows one object to be
associated with another. It has a variety of uses,
link-lists, simple ordered maps and mixed collections,
among them.


== FEATURES/ISSUES

* Create linked-lists with operator (#>>).
* Operator notation does not work for:
  * Bignum
  * Fixnum
  * Date
  * IPAddr
  * Process::Status
  Or any other class that defines #>> for something else.
* An object can have multiple associations.


== SYNOPSIS

Gerenal binary association allows one object to be
associated with another. It has a variety of uses,
link-lists, simple ordered maps and mixed collections,
among them.

Associations can be used to draw simple relationships.

  :Apple >> :Fruit
  :Apple >> :Red
  :Apple.associations #=> [ :Fruit, :Red ]

It can also be used for simple lists of ordered pairs.

  c = [ :a >> 1, :b >> 2 ]
  c.each { |k,v| puts "#{k} associated with #{v} }

produces

  a associated with 1
  b associated with 2

The method :>> is used to construct the association.
It is a rarely used method so it is generally available.
But you can't use an Association while extending
any of the following classes becuase they use #>> for
other things.

  Bignum
  Fixnum
  Date
  IPAddr
  Process::Status


== HOW TO INSTALL

Describe your installation procedure here.

To install with RubyGems simply open a console and type:

  gem install association

Local installation requires Setup.rb (gem install setup),
then download the tarball package and type:

  tar -xvzf association-1.0.0.tgz
  cd association-1.0.0
  sudo setup.rb all

Windows users use 'ruby setup.rb all'.


== COPYING

Copyright (c) 2005 The Coding Dead

This program is ditributed unser the terms of the LGPLv3 license.

See LICENSE file for details.

association's People

Contributors

trans avatar

Watchers

 avatar  avatar

association's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.