README.md in ribimaybe-0.0.4 vs README.md in ribimaybe-0.0.5
- old
+ new
@@ -1,7 +1,8 @@
# Ribimaybe
+[![Gem Version](https://badge.fury.io/rb/ribimaybe.svg)](http://badge.fury.io/rb/ribimaybe)
[![Travis](https://travis-ci.org/unsymbol/ribimaybe.svg?branch=master)](http://travis-ci.org/unsymbol/ribimaybe)
[![Code Climate](https://codeclimate.com/github/unsymbol/ribimaybe.png)](https://codeclimate.com/github/unsymbol/ribimaybe)
![](maybe.gif)
@@ -57,12 +58,12 @@
``` ruby
include Ribimaybe::Maybe
# Wrap functions inside functors and apply them to other functors!
-Just do |x|
- x * x
-end.apply(pure(42)) # => Just(1764)
+Just do |x, y|
+ x * y
+end.apply(pure(42)).apply(pure(42)) # => Just(1764)
Just do |x|
x * x
end.apply(Nothing) # => Nothing
```