Module: AsciiDataTools
- Defined in:
- lib/ascii-data-tools/filter.rb,
lib/ascii-data-tools/record.rb,
lib/ascii-data-tools/version.rb,
lib/ascii-data-tools/controller.rb,
lib/ascii-data-tools/formatting.rb,
lib/ascii-data-tools/record_type.rb,
lib/ascii-data-tools/configuration.rb,
lib/ascii-data-tools/filter/diffing.rb,
lib/ascii-data-tools/external_programs.rb,
lib/ascii-data-tools/record_type/field.rb,
lib/ascii-data-tools/record_type/builder.rb,
lib/ascii-data-tools/record_type/decoder.rb,
lib/ascii-data-tools/record_type/encoder.rb,
lib/ascii-data-tools/global_autodiscovery.rb,
lib/ascii-data-tools/configuration_printer.rb,
lib/ascii-data-tools/record_type/normaliser.rb
Defined Under Namespace
Modules: Controller, ExternalPrograms, Filter, Formatting, Record, RecordType
Classes: Configuration, Editor, InputSource, InputSourceFactory, RecordTypesConfigurationPresenter, RecordTypesConfigurationPrinter
Constant Summary
collapse
- VERSION =
"0.9"
Class Method Summary
collapse
Class Method Details
.autodiscover ⇒ Object
11
12
13
14
15
16
17
18
19
|
# File 'lib/ascii-data-tools/global_autodiscovery.rb', line 11
def autodiscover
require 'rubygems'
configuration_files_from_newest_gem_versions = Gem.find_files('ascii-data-tools/discover.rb').select do |path|
Gem.latest_load_paths.any? {|load_path| path.include?(load_path)} or not path.include?(Gem.default_dir)
end
configuration_files_from_newest_gem_versions.each {|f| load f}
end
|
3
4
5
|
# File 'lib/ascii-data-tools/global_autodiscovery.rb', line 3
def configure(&block)
record_types.instance_eval(&block)
end
|