module TapUnless
Public Instance Methods
tap_unless(*args) { |self| ... }
click to toggle source
See TapIf
# File lib/tap_unless.rb, line 5 def tap_unless(*args) yield self if ((args.empty? && !self) || (args.any? && respond_to?(args.first) && !send(*args))) # self end