Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ritex/mathml/functions.rb

Overview

lib/ritex/mathml/functions.rb – MathML conversions of TeX markup “functions”. See Ritex::MathML

Author

William Morgan (mailto: [email protected])

Copyright

Copyright 2005 William Morgan

License

GNU GPL version 2

Instance Method Summary collapse

Instance Method Details

#map_charsObject

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