README.md in option-0.3.1 vs README.md in option-0.4.0

- old
+ new

@@ -1,10 +1,12 @@ # Option -A Ruby port os Scala's Option monad. Tries to be faithful -but also pragmatic in RE: to ducktyping. +A Ruby port of Scala's Option monad. Tries to be faithful +but also pragmatic in RE: to duck typing. +Blog post: http://robares.com/2012/09/16/ruby-port-of-scala-option/ + ## Installation Add this line to your application's Gemfile: gem 'option' @@ -52,13 +54,19 @@ # attempt to extract a value but default if None None.fold(-> { "missing" }) { |v| v.upcase } #=> missing # filter values returning an option foo.filter { |v| v == "baz" } #=> None + +# mutation +foo.inside { |v| v.upcase! } #=> Some("BAR") ``` ## Build Status -<a href="http://travis-ci.org/rares/option">![http://travis-ci.org/rares/option](https://secure.travis-ci.org/rares/option.png)</a> +[![Travis CI](https://secure.travis-ci.org/rares/option.png)](http://travis-ci.org/rares/option) + +## Code Climate +[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/rares/option) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)