Implement `set?' task keyword:

When called from a task, will return true when given key exists and
false when key does not exist.
This commit is contained in:
Thibault Jouan
2014-11-18 16:48:11 +00:00
parent 1465b98f18
commit 3b413a242f
4 changed files with 27 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ module Producer
module Core
class Env
extend Forwardable
def_delegators :@registry, :[]=
def_delegators :@registry, :[]=, :key?
attr_reader :input, :output, :error_output, :registry, :logger
attr_accessor :target, :verbose, :debug, :dry_run