Module: FakerMaker::Configurable

Included in:
FakerMaker
Defined in:
lib/faker_maker/configuration.rb

Overview

Mixin to provide configuraton methods to an extending or implementing class

Instance Method Summary collapse

Instance Method Details

#configurationObject



22
23
24
# File 'lib/faker_maker/configuration.rb', line 22

def configuration
  @configuration ||= Configuration.new
end

#configuration=(config) ⇒ Object



26
27
28
# File 'lib/faker_maker/configuration.rb', line 26

def configuration=(config)
  @configuration = config
end

#configure {|configuration| ... } ⇒ Object

Yields:



30
31
32
# File 'lib/faker_maker/configuration.rb', line 30

def configure
  yield(configuration) if block_given?
end