lib/bluepill/dsl/process_proxy.rb in bluepill-0.1.2 vs lib/bluepill/dsl/process_proxy.rb in bluepill-0.1.3

- old
+ new

@@ -16,10 +16,10 @@ def method_missing(name, *args) if args.size == 1 && name.to_s =~ /^(.*)=$/ @attributes[Regexp.last_match[1].to_sym] = args.first elsif args.size == 1 @attributes[name.to_sym] = args.first - elsif args.size == 0 && name.to_s =~ /^(.*)!$/ + elsif args.empty? && name.to_s =~ /^(.*)!$/ @attributes[Regexp.last_match[1].to_sym] = true elsif args.empty? && @attributes.key?(name.to_sym) @attributes[name.to_sym] else super