Method: ModelFactory::FactoryConfiguration#method_missing

Defined in:
lib/modelfactory.rb

#method_missing(method, klass, &block) ⇒ Object

All method calls set up a configuration named after the method.



56
57
58
59
# File 'lib/modelfactory.rb', line 56

def method_missing(method, klass, &block)
  @class_opts[klass] ||= {}
  @class_opts[klass][method] = block
end