Sha256: a991a41d7a21e93017bb21bccb728ee16afd6855761dbf834ab9a591db85130e
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
module Relish module Command module Dsl def option(name, options = {}) default_proc = options[:default] || lambda {} define_method(name) do cli_options[name.to_s] || local_options_file[name.to_s] || global_options_file[name.to_s] || instance_exec(&default_proc) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relish-0.0.6 | lib/relish/commands/dsl.rb |