Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/anagrams/string_to_symbol_array.rb
Instance Method Summary collapse
-
#to_sym_a ⇒ Array<Symbol>
Returns a symbol array representation of the reciever's characters.
Instance Method Details
#to_sym_a ⇒ Array<Symbol>
Returns a symbol array representation of the reciever's characters.
6 7 8 |
# File 'lib/anagrams/string_to_symbol_array.rb', line 6 def to_sym_a self.chars.map { |char| char.to_sym } end |