Class | ActiveLdap::Schema::Syntaxes::Integer |
In: |
lib/active_ldap/schema/syntaxes.rb
|
Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 257 257: def normalize_value(value) 258: if value.is_a?(::Integer) 259: value.to_s 260: else 261: value 262: end 263: end
# File lib/active_ldap/schema/syntaxes.rb, line 248 248: def type_cast(value) 249: return value if value.nil? 250: begin 251: Integer(value) 252: rescue ArgumentError 253: value 254: end 255: end