README.md in render-text-helper-0.3.0 vs README.md in render-text-helper-0.3.1
- old
+ new
@@ -37,9 +37,28 @@
'elephant'.limit_print(limit: 4, more_indicator: '*', indicator_length: 2)
'elep**'
```
+### To Smart Array
+
+Take a string and splits it to an array by ",", "|", space, or by a passed parameter.
+It also strips whitespace.
+
+```ruby
+'cat, dog, matt'.to_smart_array
+['cat', 'dog', 'matt']
+
+' cat , dog, matt,pat '.to_smart_array
+['cat', 'dog', 'matt', 'pat']
+
+' cat dog matt pat '.to_smart_array
+['cat', 'dog', 'matt', 'pat']
+
+' cat # dog# matt#pat '.to_smart_array('#')
+['cat', 'dog', 'matt', 'pat']
+```
+
### 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.