README.md in render-text-helper-0.1.0 vs README.md in render-text-helper-0.2.0
- old
+ new
@@ -35,22 +35,24 @@
```
### to yes no
This function returns a string from a boolean to yes or no.
+It takes in optional casting parameter which can be either capitalize, upcase, or downcase.
```ruby
true.to_yes_no
-'yes'
+'Yes'
-true.to_yes_no(capital_letter: true)
+true.to_yes_no(:upcase)
'YES'
-false.to_yes_no
+false.to_yes_no(:downcase)
'no'
-false.to_yes_no(capital_letter: true)
-'NO'
+false.to_yes_no
+false.to_yes_no(:capitalize)
+'No'
```
### to yn
This function returns a string from a boolean to Y or N