jugglebird / google-sets

Ruby API/wrapper for Google Sets

Home Page:http://labs.google.com/sets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Sets

This is a very small library that provides a wrapper for Google Sets.

I plan to make a command line tool very soon (need to sleep now!) to get sets and choose a random item from a set from the console.

For now here is some usage examples:

set = GoogleSet.new('titania', 'oberon', 'romeo')

puts set   ### Outputs:
           # romeo
           # oberon
           # daphne
           # delfinen
           # zwaardvis
           # agosta
           # dolfijn
           # narvahlen
           # kilo
           # upholder
  
set.rand   # => agosta
set[8]     # => kilo
set.size   # => 10
set.to_a   # => ["romeo", "oberon", "daphne", "delfinen", "zwaardvis", 
           #     "agosta", "dolfijn", "narvahlen", "kilo", "upholder"]

About

Ruby API/wrapper for Google Sets

http://labs.google.com/sets