class Build::Environment::Constructor
def method_missing(name, *args, **options, &block)
def method_missing(name, *args, **options, &block) if block_given? and args.empty? @environment[name] = block return name elsif !block_given? and !args.empty? if args.count == 1 @environment[name] = args.first else @environment[name] = args end return name end if @proxy # This is a bit of a hack, but I'm not sure if there is a better way. if options.empty? @proxy.send(name, *args, &block) else @proxy.send(name, *args, **options, &block) end else super end end