Class: Mongomatic::TypeConverters::Array
- Inherits:
-
Base
- Object
- Base
- Mongomatic::TypeConverters::Array
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
66
67
68
|
# File 'lib/mongomatic/type_converters.rb', line 66
def convert_orig_val
@orig_val.respond_to?(:to_a) ? @orig_val.to_a : nil
end
|
#type_match? ⇒ Boolean
62
63
64
|
# File 'lib/mongomatic/type_converters.rb', line 62
def type_match?
@orig_val.kind_of? ::Array
end
|