class Cutest::Result

Constants

STATES

Attributes

exception[R]
name[R]
state[R]

Public Class Methods

new(name, state, exception = nil) click to toggle source
# File lib/cutest/result.rb, line 7
def initialize(name, state, exception = nil)
  @name, @state, @exception = name, state, exception

  STATES.each do |method|
    define_singleton_method "#{method}?" do
      state == method
    end
  end
end