class ActiveLdap::Schema::Syntaxes::Integer

Public Instance Methods

normalize_value(value) click to toggle source
# File lib/active_ldap/schema/syntaxes.rb, line 257
def normalize_value(value)
  if value.is_a?(::Integer)
    value.to_s
  else
    value
  end
end
type_cast(value) click to toggle source
# File lib/active_ldap/schema/syntaxes.rb, line 248
def type_cast(value)
  return value if value.nil?
  begin
    Integer(value)
  rescue ArgumentError
    value
  end
end