PersistentBlocks
Persist the output of ruby blocks
Installation
Add this line to your application's Gemfile:
gem 'persistent_blocks'
And then execute:
$ bundle
Or install it yourself as:
$ gem install persistent_blocks
Usage
require 'persistent_blocks'
extend PersistentBlocks
persist :first_persisted do
'Here is the first persistent data'
end
persist do |first_persisted|
puts first_persisted # => 'Here is the first persistent data'
endContributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request