Sha256: b5d7ac539233f2692ef17f058e2ab035f70bc7f8c7e6d224f97ec6875f244058
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
unless defined? $__rq_configurator__ module RQ #{{{ LIBDIR = File::dirname(File::expand_path(__FILE__)) + File::SEPARATOR unless defined? LIBDIR require LIBDIR + 'mainhelper' class Configurator < MainHelper #{{{ #}}} def configure #{{{ set_q attributes = {} unless @argv.empty? kv_pat = %r/^\s*([^\s]+)\s*=+\s*([^\s]+)\s*$/o @q.transaction do @argv.each do |arg| match = kv_pat.match arg if match k, v = match[1], match[2] @q[k] = v end end attributes = @q.attributes end end y attributes #}}} end end # class Configurator #}}} end # module RQ $__rq_configurator__ = __FILE__ end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rq-0.1.7 | lib/rq-0.1.7/configurator.rb |