lib/journeyman/definition.rb
def define(name, options={}, &config)
      finder, default = options.delete(:include_finder), options.delete(:include_default)

      Builder.new(name, options, config).tap do |builder|
        define_find_method(name, builder) unless finder == false
        define_build_method(name, builder)
        define_create_method(name, builder)
        define_default_method(name) if default
      end
    end
def define(name, options={}, &config)
      finder, default = options.delete(:include_finder), options.delete(:include_default)

      Builder.new(name, options, config).tap do |builder|
        define_find_method(name, builder) unless finder == false
        define_build_method(name, builder)
        define_create_method(name, builder)
        define_default_method(name) if default
      end
    end
def define ( name , options = { } , & config ) finder , default = options . delete ( :include_finder ) , options . delete ( :include_default ) Builder . new ( name , options , config ) . tap do | builder | define_find_method ( name , builder ) unless finder == false define_build_method ( name , builder ) define_create_method ( name , builder ) define_default_method ( name ) if default end end
Public: Defines a new factory for Journeyman, which consists in a build
 and create method, and may optionally include finder and default methods.

 Returns Builder for debug purposes.
Public : Defines a new factory for Journeyman which consists in a build and create method and may optionally include finder and default methods .