Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleander/acts_as_chain
Define a set of methods that should be chainable.
https://github.com/oleander/acts_as_chain
Last synced: about 2 months ago
JSON representation
Define a set of methods that should be chainable.
- Host: GitHub
- URL: https://github.com/oleander/acts_as_chain
- Owner: oleander
- Created: 2011-10-22T15:54:52.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-18T18:32:56.000Z (about 13 years ago)
- Last Synced: 2024-04-26T16:46:51.750Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Acts as chain
Define a set of methods that should be chainable.
## Example
``` ruby
require "acts_as_chain"class MyExampleClass
acts_as_chain :method1, :method2
endMyExampleClass.new.method1("value1").method2("value2").method1 # => "value1"
```## Installation
[sudo] gem install acts_as_chain
## Requirements
*acts_as_chain* is tested in *OS X 10.7.2* using Ruby *1.9.2*, *1.8.7*.
## License
*acts_as_chain* is released under the *MIT license*.