| Class | ActiveLdap::Schema::Syntaxes::Integer |
| In: |
lib/active_ldap/schema/syntaxes.rb
|
| Parent: | Base |
# File lib/active_ldap/schema/syntaxes.rb, line 233
233: def normalize_value(value)
234: if value.is_a?(Integer)
235: value.to_s
236: else
237: value
238: end
239: end
# File lib/active_ldap/schema/syntaxes.rb, line 224
224: def type_cast(value)
225: return value if value.nil?
226: begin
227: Integer(value)
228: rescue ArgumentError
229: value
230: end
231: end