Method: Dnsruby::CodeMapper.to_code

Defined in:
lib/dnsruby/code_mapper.rb

.to_code(arg) ⇒ Object



148
149
150
151
152
153
154
# File 'lib/dnsruby/code_mapper.rb', line 148

def CodeMapper.to_code(arg)
  if arg.kind_of?(Integer)
    return arg
  else
    return @@arrays[self].stringsdown[arg.downcase]
  end
end