Class: Mongomatic::TypeConverters::Symbol
- Inherits:
-
Base
- Object
- Base
- Mongomatic::TypeConverters::Symbol
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
128
129
130
|
# File 'lib/mongomatic/type_converters.rb', line 128
def convert_orig_val
@orig_val.respond_to?(:to_sym) ? @orig_val.to_sym : nil
end
|
#type_match? ⇒ Boolean
124
125
126
|
# File 'lib/mongomatic/type_converters.rb', line 124
def type_match?
@orig_val.kind_of? ::Symbol
end
|