Class: Mongomatic::TypeConverters::Fixnum
- Inherits:
-
Base
- Object
- Base
- Mongomatic::TypeConverters::Fixnum
show all
- Defined in:
- lib/mongomatic/type_converters.rb
Instance Method Summary
collapse
Methods inherited from Base
#cast, #initialize
Instance Method Details
#convert_orig_val ⇒ Object
56
57
58
|
# File 'lib/mongomatic/type_converters.rb', line 56
def convert_orig_val
@orig_val.respond_to?(:to_i) ? @orig_val.to_i : nil
end
|
#type_match? ⇒ Boolean
52
53
54
|
# File 'lib/mongomatic/type_converters.rb', line 52
def type_match?
@orig_val.kind_of? ::Fixnum
end
|