lib/key_map.rb
def to_ord(key)
    if key.is_a?(String) then
      return key.ord
    else
      return key
    end
  end
# All commands are stored as ordinals. Convert a key to ordinal if necessary.
All commands are stored as ordinals. Convert a key to ordinal if necessary.
All commands are stored as ordinals . Convert a key to ordinal if necessary .
def to_ord(key)
    if key.is_a?(String) then
      return key.ord
    else
      return key
    end
  end
def to_ord ( key ) if key . is_a? ( String ) then return key . ord else return key end end
All commands are stored as ordinals.
All commands are stored as ordinals .
key