Method: String#characters
- Defined in:
- lib/core/facets/string/characters.rb
#characters ⇒ Object
Returns an array of characters.
"abc".characters.to_a #=> ["a","b","c"]
TODO: Probably should make this an enumerator. With #scan?
8 9 10 |
# File 'lib/core/facets/string/characters.rb', line 8 def characters split(//) end |