Module: Stockboy

Defined in:
lib/stockboy.rb,
lib/stockboy/dsl.rb,
lib/stockboy/job.rb,
lib/stockboy/filter.rb,
lib/stockboy/reader.rb,
lib/stockboy/filters.rb,
lib/stockboy/readers.rb,
lib/stockboy/version.rb,
lib/stockboy/provider.rb,
lib/stockboy/registry.rb,
lib/stockboy/attribute.rb,
lib/stockboy/providers.rb,
lib/stockboy/exceptions.rb,
lib/stockboy/translator.rb,
lib/stockboy/string_pool.rb,
lib/stockboy/configurator.rb,
lib/stockboy/filter_chain.rb,
lib/stockboy/translations.rb,
lib/stockboy/attribute_map.rb,
lib/stockboy/configuration.rb,
lib/stockboy/mapped_record.rb,
lib/stockboy/source_record.rb,
lib/stockboy/template_file.rb,
lib/stockboy/candidate_record.rb,
lib/stockboy/provider_repeater.rb

Defined Under Namespace

Modules: DSL, Filters, Providers, Readers, Registry, TemplateFile, Translations Classes: Attribute, AttributeMap, CandidateRecord, Configuration, Configurator, ConfiguratorBlock, Filter, FilterChain, Job, MappedRecord, OutOfSequence, Provider, ProviderRepeater, Reader, SourceRecord, TranslationError, Translator

Constant Summary collapse

VERSION =
"1.3.1"

Class Method Summary collapse

Class Method Details

.configure { ... } ⇒ Configuration Also known as: configuration

Stockboy configuration block

Examples:

Stockboy.configure do |config|
  config.template_load_paths << "config/my_templates"
end

Yields:

  • self for configuration

Returns:



63
64
65
66
67
# File 'lib/stockboy/configuration.rb', line 63

def configure
  @configuration ||= Configuration.new
  yield @configuration if block_given?
  @configuration
end