Sha256: 5971be7c91f7fc6c91f1fba2f249bd6c494d5444e0ec6dfe1a349893c597287d

Contents?: true

Size: 687 Bytes

Versions: 1

Compression:

Stored size: 687 Bytes

Contents

kattr
=====

Works much like the version for rails (except it doesn't accept blocks and doesn't use eval).
It is prefered to use `kattr_*` instead of `cattr_*` so there are no confusion. If you are using
this gem outside of rails, it should be alright

```ruby
class Moo
  cattr_accessor :cow
end

Moo.cow = 'animal'
Moo.class_variables
#=> [:@@cow]
```


## Note on Patches/Pull Requests

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## Copyright

Copyright (c) 2010 Daniel Bretoi. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kattr-0.0.1 README.markdown