Class: Flatware::RSpec::Marshalable::ExamplesNotification::Reporter
- Inherits:
-
Struct
- Object
- Struct
- Flatware::RSpec::Marshalable::ExamplesNotification::Reporter
- Defined in:
- lib/flatware/rspec/marshalable/examples_notification.rb
Instance Attribute Summary collapse
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#failed_examples ⇒ Object
Returns the value of attribute failed_examples.
-
#pending_examples ⇒ Object
Returns the value of attribute pending_examples.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#examples ⇒ Object
Returns the value of attribute examples
8 9 10 |
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 8 def examples @examples end |
#failed_examples ⇒ Object
Returns the value of attribute failed_examples
8 9 10 |
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 8 def failed_examples @failed_examples end |
#pending_examples ⇒ Object
Returns the value of attribute pending_examples
8 9 10 |
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 8 def pending_examples @pending_examples end |
Class Method Details
.from_rspec(reporter) ⇒ Object
9 10 11 |
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 9 def self.from_rspec(reporter) new(*members.map { |member| reporter.public_send(member).map(&Example.method(:new)) }) end |
Instance Method Details
#+(other) ⇒ Object
13 14 15 |
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 13 def +(other) self.class.new(*zip(other).map { |a, b| a + b }) end |