Module: Iudex::Core::Config
- Defined in:
- lib/iudex-core/config.rb
Overview
DEPRECATED: Extensible module defining top level configuration blocks.
Class Method Summary collapse
-
.parse_options(args = ARGV, &block) ⇒ Object
DEPRECATED: Parse options using an OptionParser, defining (-c)onfig option, and yielding to block for further option handling.
Class Method Details
.parse_options(args = ARGV, &block) ⇒ Object
DEPRECATED: Parse options using an OptionParser, defining (-c)onfig option, and yielding to block for further option handling.
39 40 41 42 43 44 45 46 47 |
# File 'lib/iudex-core/config.rb', line 39 def self.( args = ARGV, &block ) warn( "DEPRECATED parse_options called from #{caller.first.to_s}\n" + "Use Hooker.register_config and OptionParser.new instead." ) parser = OptionParser.new do |opts| Hooker.register_config( opts ) block.call( opts ) if block end parser.parse! end |