Class: Cucumber::Events::GherkinSourceRead

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/events/gherkin_source_read.rb

Overview

Fired after we’ve read in the contents of a feature file

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#event_id, #to_h

Constructor Details

#initialize(path, body) ⇒ GherkinSourceRead

Returns a new instance of GherkinSourceRead.



17
18
19
20
21
# File 'lib/cucumber/events/gherkin_source_read.rb', line 17

def initialize(path, body)
  @path = path
  @body = body
  super()
end

Instance Attribute Details

#bodyObject (readonly)

The raw Gherkin source



11
12
13
# File 'lib/cucumber/events/gherkin_source_read.rb', line 11

def body
  @body
end

#pathObject (readonly)

The path to the file



8
9
10
# File 'lib/cucumber/events/gherkin_source_read.rb', line 8

def path
  @path
end

Class Method Details

.event_idObject



13
14
15
# File 'lib/cucumber/events/gherkin_source_read.rb', line 13

def self.event_id
  :gherkin_source_read
end