lib/eco-rake/option/mirror.rb in eco-rake-0.2.4 vs lib/eco-rake/option/mirror.rb in eco-rake-0.2.5

- old
+ new

@@ -23,11 +23,13 @@ def boolean_mirror(value = :not_used) opt = name_hyphened # puts "boolean_mirror (#{value}): #{opt}" if name == :no_get return nil unless [TrueClass, NilClass, FalseClass].any? {|klass| type_coercion == klass} + enabled_value = !boolean_name? || [TrueClass, NilClass].any? {|klass| type_coercion == klass} return opt if value == enabled_value + name_false_hypen if boolean_name? && value == !enabled_value end end end end