| Class | ActiveLdap::Schema::Syntaxes::Integer |
| In: |
lib/active_ldap/schema/syntaxes.rb
|
| Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 245
245: def normalize_value(value)
246: if value.is_a?(::Integer)
247: value.to_s
248: else
249: value
250: end
251: end
# File lib/active_ldap/schema/syntaxes.rb, line 236
236: def type_cast(value)
237: return value if value.nil?
238: begin
239: Integer(value)
240: rescue ArgumentError
241: value
242: end
243: end