README.md in rekkyo-0.1.0 vs README.md in rekkyo-0.2.0
- old
+ new
@@ -1,7 +1,8 @@
# Rekkyo
+[![Gem Version](https://badge.fury.io/rb/rekkyo.svg)](https://badge.fury.io/rb/rekkyo)
[![Build Status](https://travis-ci.org/yujideveloper/rekkyo.svg?branch=master)](https://travis-ci.org/yujideveloper/rekkyo)
[![Maintainability](https://api.codeclimate.com/v1/badges/37d6334cedf5b04af831/maintainability)](https://codeclimate.com/github/yujideveloper/rekkyo/maintainability)
Rekkyo is a gem for defining an enumerated type in Ruby.
@@ -35,9 +36,12 @@
member :GREEN
member :BLUE
end
{ color: Color::RED }.to_json # => "{\"color\":\"RED\"}
+
+Color::RED.red? # => true
+Color::BLUE.blue? # => false
```
### Custom value
``` ruby