module Haml::Util

def ord(c)

Returns:
  • (Fixnum) - The ASCII code of `c`.

Parameters:
  • c (String) -- All characters but the first are ignored.
def ord(c)
  ruby1_8? ? c[0] : c.ord
end