Sha256: 27b507f1bb3bb6089b70c3d06e12a6f31766a231cd3b7d2fc30d521efd78327e
Contents?: true
Size: 429 Bytes
Versions: 2
Compression:
Stored size: 429 Bytes
Contents
module Tap module Signals class Configure < Signal def call(config) if config.kind_of?(Array) psr = ConfigParser.new(:add_defaults => false) psr.add(obj.class.configurations) args = psr.parse!(config) psr.warn_ignored_args(args) config = psr.config end obj.reconfigure(config) obj.config end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tap-1.4.0 | lib/tap/signals/configure.rb |
tap-1.3.0 | lib/tap/signals/configure.rb |