Class Tap::Signals::Configure
In: lib/tap/signals/configure.rb
Parent: Signal

Methods

call  

Public Instance methods

[Source]

    # File lib/tap/signals/configure.rb, line 4
 4:       def call(config)
 5:         if config.kind_of?(Array)
 6:           psr = ConfigParser.new(:add_defaults => false)
 7:           psr.add(obj.class.configurations)
 8:           args = psr.parse!(config)
 9:           psr.warn_ignored_args(args)
10:           
11:           config = psr.config
12:         end
13:         
14:         obj.reconfigure(config)
15:         obj.config
16:       end

[Validate]