ATLet
A simple ruby version of the let statement, from lispy languages.
Installation
Add this line to your application's Gemfile:
gem 'at-let'
And then execute:
$ bundle
Or install it yourself as:
$ gem install at-let
Usage
let {|hello = "world"| hello } # => "world"
three = let {|two = 2, one = 1| one + two } # => 3
Contributing
- 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