Simple Encoding for Your Life
gem 'lifematon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lifematon
"b".state! "Born"
life = "b".state! "Born"
life.state_merge([
"s".state!("Study"),
"d".state!("Die")
])
life = "s".state! "Study"
life.life! "sssssssss"
life = "s".state! "Study"
life.life! "sss"
life.to_life # => ["Study", "Study", "Study"]
life = "b".state! "Born"
life = life.state_merge(["s".state!("Study"), "d".state!("Die")])
life = life.life "bsssd"
life.match(/s+/) { |md| md[0].by_life life } # => ["Study", "Study", "Study"]
- Fork it ( https://github.com/[my-github-username]/lifematon/fork )
- 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 a new Pull Request