Module: Factory::Syntax::Sham::Sham

Defined in:
lib/factory_girl/syntax/sham.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.method_missing(name, &block) ⇒ Object


25
26
27
28
29
30
31
# File 'lib/factory_girl/syntax/sham.rb', line 25

def self.method_missing(name, &block)
  if block_given?
    Factory.sequence(name, &block)
  else
    Factory.next(name)
  end
end

.name(&block) ⇒ Object

overrides name on Module


34
35
36
# File 'lib/factory_girl/syntax/sham.rb', line 34

def self.name(&block)
  method_missing('name', &block)
end