RubyGems Navigation menu

quick_attr 0.0.2

usage: <br> require 'quick_attr'<br> class C<br> extend QuickAttr<br> quick_attr :name, :smell<br> end<br> <br> #set attr by passing value<br> c = C.new.name("bobaloba ding-dong").smell("fishy")<br> <br> #get attr by calling without args...<br> puts c.name # bobaloba ding-dong<br> puts c.smell # fishy<br>

Versions:

  1. 0.0.4 - September 9, 2010 (5 KB)
  2. 0.0.3 - September 9, 2010 (5 KB)
  3. 0.0.2 - September 9, 2010 (4.5 KB)
  4. 0.0.1 - September 9, 2010 (4.5 KB)

Authors:

  • Dominic Tarr

Owners:

8225d7ca5e83a3f9f0bb89a61d5df72c

Total downloads 5,097

For this version 1,234

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'quick_attr', '~> 0.0.2' = Copy to clipboard Copied!

install:
gem install quick_attr -v 0.0.2 = Copy to clipboard Copied!

Links: