Method: String#map_chars
- Defined in:
- lib/ritex/mathml/functions.rb
#map_chars ⇒ Object
map over the characters in a string
10 11 12 13 14 |
# File 'lib/ritex/mathml/functions.rb', line 10 def map_chars ret = "" each_byte { |b| ret += yield b.chr } ret end |