Module: FactoryGirl::Syntax::Default

Includes:
Methods
Included in:
FactoryGirl
Defined in:
lib/factory_girl/syntax/default.rb

Defined Under Namespace

Classes: DSL, ModifyDSL

Instance Method Summary collapse

Methods included from Methods

#attributes_for, #build, #build_list, #build_stubbed, #create, #create_list, #generate

Instance Method Details

#define(&block) ⇒ Object


6
7
8
# File 'lib/factory_girl/syntax/default.rb', line 6

def define(&block)
  DSL.run(block)
end

#modify(&block) ⇒ Object


10
11
12
# File 'lib/factory_girl/syntax/default.rb', line 10

def modify(&block)
  ModifyDSL.run(block)
end