Class: Together::Results

Inherits:
Array
  • Object
show all
Defined in:
lib/together/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionsObject (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

Returns:

  • (Boolean)


10
11
12
# File 'lib/together/results.rb', line 10

def success?
  @exceptions.all?(&:nil?)
end