Class: Cucumber::Distrib::Events::Envelope
- Defined in:
- lib/cucumber/distrib/events.rb
Overview
Object that mimic Cucumber::Event::StepActivated on Leader for reporters.
Instance Attribute Summary collapse
-
#envelope ⇒ Object
readonly
Returns the value of attribute envelope.
Instance Method Summary collapse
-
#initialize(event) ⇒ Envelope
constructor
A new instance of Envelope.
Methods inherited from Event
Constructor Details
#initialize(event) ⇒ Envelope
Returns a new instance of Envelope.
165 166 167 168 |
# File 'lib/cucumber/distrib/events.rb', line 165 def initialize(event) super() @envelope = event.is_a?(::Cucumber::Messages::Envelope) ? event : event.envelope end |
Instance Attribute Details
#envelope ⇒ Object (readonly)
Returns the value of attribute envelope.
163 164 165 |
# File 'lib/cucumber/distrib/events.rb', line 163 def envelope @envelope end |