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

Version Path
mumukit-core-1.16.0 lib/mumukit/core/status.rb
mumukit-core-1.15.0 lib/mumukit/core/status.rb
mumukit-core-1.14.0 lib/mumukit/core/status.rb
mumukit-core-1.13.0 lib/mumukit/core/status.rb
mumukit-core-1.12.0 lib/mumukit/core/status.rb
mumukit-core-1.11.0 lib/mumukit/core/status.rb
mumukit-core-1.10.1 lib/mumukit/core/status.rb
mumukit-core-1.10.0 lib/mumukit/core/status.rb
mumukit-core-1.9.0 lib/mumukit/core/status.rb
mumukit-core-1.8.0 lib/mumukit/core/status.rb
mumukit-core-1.7.0 lib/mumukit/core/status.rb
mumukit-core-1.6.0 lib/mumukit/core/status.rb
mumukit-core-1.5.2 lib/mumukit/core/status.rb
mumukit-core-1.5.1 lib/mumukit/core/status.rb
mumukit-core-1.5.0 lib/mumukit/core/status.rb
mumukit-core-1.4.0 lib/mumukit/core/status.rb
mumukit-core-1.3.0 lib/mumukit/core/status.rb