Module: Mongo::Model::Conversion::ClassMethods

Defined in:
lib/mongo/model/conversion.rb

Instance Method Summary collapse

Instance Method Details

#profile(name, options = {}, &block) ⇒ Object



75
76
77
# File 'lib/mongo/model/conversion.rb', line 75

def profile name, options = {}, &block
  profiles[name] = [options, block]
end