Class: TheArrayComparator::Result
- Inherits:
-
Object
- Object
- TheArrayComparator::Result
- Defined in:
- lib/the_array_comparator/result.rb
Overview
the check result
Instance Method Summary collapse
- #failed_sample ⇒ Object
-
#initialize(sample = nil) ⇒ Result
constructor
A new instance of Result.
- #of_checks ⇒ Object
Constructor Details
#initialize(sample = nil) ⇒ Result
Returns a new instance of Result.
7 8 9 |
# File 'lib/the_array_comparator/result.rb', line 7 def initialize(sample=nil) @sample = sample end |
Instance Method Details
#failed_sample ⇒ Object
16 17 18 |
# File 'lib/the_array_comparator/result.rb', line 16 def failed_sample @sample || null_sample end |
#of_checks ⇒ Object
11 12 13 14 |
# File 'lib/the_array_comparator/result.rb', line 11 def of_checks return true if @sample.blank? false end |