Method: String#chars
- Defined in:
- lib/extra/string.rb
#chars ⇒ Object
Split string into an array of characters. Should be multi-byte safe…
Example: 'foo'.chars #=> ["f", "o", "o"]
Returns: Array
71 72 73 |
# File 'lib/extra/string.rb', line 71 def chars split(//u) end |