Class: RushCheck::Result

Inherits:
Object
  • Object
show all
Includes:
Testable
Defined in:
lib/rushcheck/result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Testable

#check, #classify, #imply, #label, #run, #run_tests, #silent_check, #test, #testcase, #trivial

Constructor Details

#initialize(ok = nil, stamp = [], arguments = []) ⇒ Result

Returns a new instance of Result.



19
20
21
# File 'lib/rushcheck/result.rb', line 19

def initialize(ok=nil, stamp=[], arguments=[])
  @ok, @stamp, @arguments = ok, stamp, arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



18
19
20
# File 'lib/rushcheck/result.rb', line 18

def arguments
  @arguments
end

#okObject (readonly)

Returns the value of attribute ok.



18
19
20
# File 'lib/rushcheck/result.rb', line 18

def ok
  @ok
end

#stampObject (readonly)

Returns the value of attribute stamp.



18
19
20
# File 'lib/rushcheck/result.rb', line 18

def stamp
  @stamp
end

Class Method Details

.nothingObject



14
15
16
# File 'lib/rushcheck/result.rb', line 14

def self.nothing
  RushCheck::Result.new(false)
end

Instance Method Details

#resultObject Also known as: property



23
24
25
# File 'lib/rushcheck/result.rb', line 23

def result
  RushCheck::Property.new(@ok, @stamp, @arguments)
end