Class: Cucumber::Events::GherkinSourceParsed

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

Overview

Fired after we’ve parsed 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(gherkin_document) ⇒ GherkinSourceParsed

Returns a new instance of GherkinSourceParsed.



16
17
18
19
# File 'lib/cucumber/events/gherkin_source_parsed.rb', line 16

def initialize(gherkin_document)
  @gherkin_document = gherkin_document
  super()
end

Instance Attribute Details

#gherkin_documentObject (readonly)

# The Gherkin Ast



10
11
12
# File 'lib/cucumber/events/gherkin_source_parsed.rb', line 10

def gherkin_document
  @gherkin_document
end

Class Method Details

.event_idObject



12
13
14
# File 'lib/cucumber/events/gherkin_source_parsed.rb', line 12

def self.event_id
  :gherkin_source_parsed
end