lib/semantic_model/commons/resource_field.rb
# map passed datatype string
# into a real type (a kind of Symbol)
# to allow using non-standard datatypes
map passed datatype string
into a real type (a kind of Symbol)
to allow using non-standard datatypes
map passed datatype string into a real type ( a kind of Symbol ) to allow using non - standard datatypes
def map_datatype(type)
    type_as_string = type.to_s.strip.downcase
    if DATATYPE_MAPPING.keys.include?(type_as_string)
      DATATYPE_MAPPING[type_as_string].to_sym
    else
      type_as_string.to_sym
    end
  end
def map_datatype ( type ) type_as_string = type . to_s . strip . downcase if DATATYPE_MAPPING . keys . include? ( type_as_string ) DATATYPE_MAPPING [ type_as_string ] . to_sym else type_as_string . to_sym end end
map passed datatype string
into a real type (a kind of Symbol)
to allow using non-standard datatypes
map passed datatype string into a real type ( a kind of Symbol ) to allow using non - standard datatypes
type
<not_specific>