Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby module for turning strings to array

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README
README
Arrayr
======

Module to use for letting attributes automatically return arrays for 
comma separated values

Specify which attributes that should return array as values
and access the value by suffixing the attribute with "_multiple"

If a getter and setter doens't exists this module will create them for you.

Example 
-------

  class Foo
    include Arrayr
    attr_arrayr(:bar)
  end
  
  foo = Foo.new
  foo.bar = "zoo, zum"
  foo.bar_to_a  => ["zoo", "zum"]
     
Something went wrong with that request. Please try again.