Class: Cucumber::Distrib::Events::GherkinSourceRead

Inherits:
Event
  • Object
show all
Defined in:
lib/cucumber/distrib/events.rb

Overview

Object that mimics Cucumber::Event::GherkinSourceRead on Leader for reporters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Event

event_id, #metadata

Constructor Details

#initialize(event) ⇒ GherkinSourceRead

Returns a new instance of GherkinSourceRead.



185
186
187
188
189
# File 'lib/cucumber/distrib/events.rb', line 185

def initialize(event)
  super()
  @path = event.path
  @body = event.body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



183
184
185
# File 'lib/cucumber/distrib/events.rb', line 183

def body
  @body
end

#pathObject (readonly)

Returns the value of attribute path.



183
184
185
# File 'lib/cucumber/distrib/events.rb', line 183

def path
  @path
end