Class: Together::Results
- Inherits:
-
Array
- Object
- Array
- Together::Results
- Defined in:
- lib/together/results.rb
Instance Attribute Summary collapse
-
#exceptions ⇒ Object
readonly
Returns the value of attribute exceptions.
Instance Method Summary collapse
-
#initialize(size, *args) ⇒ Results
constructor
A new instance of Results.
- #success? ⇒ Boolean
Constructor Details
#initialize(size, *args) ⇒ Results
Returns a new instance of Results.
5 6 7 8 |
# File 'lib/together/results.rb', line 5 def initialize(size, *args) super(size, *args) @exceptions = Array.new(size) end |
Instance Attribute Details
#exceptions ⇒ Object (readonly)
Returns the value of attribute exceptions.
4 5 6 |
# File 'lib/together/results.rb', line 4 def exceptions @exceptions end |
Instance Method Details
#success? ⇒ Boolean
10 11 12 |
# File 'lib/together/results.rb', line 10 def success? @exceptions.all?(&:nil?) end |