Sha256: e626130cca2217f8117541572ed00fb1e664867bf080ec9081d29f68d836e321
Contents?: true
Size: 336 Bytes
Versions: 17
Compression:
Stored size: 336 Bytes
Contents
[:passed, :passed_with_warnings, :failed, :errored, :aborted].each do |sym| s = sym.to_s.freeze selector = "#{s}?" NilClass.class_eval do define_method(selector) { false } end String.class_eval do define_method(selector) { self == s } end Symbol.class_eval do define_method(selector) { self == sym } end end
Version data entries
17 entries across 17 versions & 1 rubygems