Method: Chars::CharSet#map_chars

Defined in:
lib/chars/char_set.rb

#map_chars {|char| ... } ⇒ Array<String>

Maps the characters of the Chars::CharSet.

Yields:

  • (char)

    The given block will be used to transform the characters within the Chars::CharSet.

Yield Parameters:

Returns:



170
171
172
# File 'lib/chars/char_set.rb', line 170

def map_chars(&block)
  each_char.map(&block)
end