class Mongomatic::TypeConverters::Hash
Public Instance Methods
convert_orig_val()
click to toggle source
# File lib/mongomatic/type_converters.rb, line 76 def convert_orig_val [:to_h, :to_hash].each do |meth| res = (@orig_val.respond_to?(meth) ? @orig_val.send(meth) : nil) return res if !res.nil? end; nil end
type_match?()
click to toggle source
# File lib/mongomatic/type_converters.rb, line 72 def type_match? @orig_val.kind_of? ::Hash end