Class Index [+]

Quicksearch

ActiveLdap::Schema::Syntaxes::Integer

Public Instance Methods

normalize_value(value) click to toggle source
     # 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
type_cast(value) click to toggle source
     # 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

Private Instance Methods

validate_normalized_value(value, original_value) click to toggle source
     # File lib/active_ldap/schema/syntaxes.rb, line 266
266:         def validate_normalized_value(value, original_value)
267:           Integer(value)
268:           nil
269:         rescue ArgumentError
270:           _("%s is invalid integer format") % original_value.inspect
271:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.