Class: Flatware::RSpec::Marshalable::ExamplesNotification

Inherits:
RSpec::Core::Notifications::ExamplesNotification
  • Object
show all
Defined in:
lib/flatware/rspec/marshalable/examples_notification.rb

Defined Under Namespace

Classes: Reporter

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#reporterObject (readonly)

Returns the value of attribute reporter.



18
19
20
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 18

def reporter
  @reporter
end

Class Method Details

.from_rspec(rspec_notification) ⇒ Object



20
21
22
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 20

def self.from_rspec(rspec_notification)
  new Reporter.from_rspec(rspec_notification.instance_variable_get(:@reporter))
end

Instance Method Details

#+(other) ⇒ Object



24
25
26
# File 'lib/flatware/rspec/marshalable/examples_notification.rb', line 24

def +(other)
  self.class.new reporter + other.reporter
end