Class: Cucumber::Core::Events::GherkinSourceParsed

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

Overview

Signals that a gherkin source has been parsed

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.



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

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

Instance Attribute Details

#gherkin_documentGherkinDocument (readonly)

Returns the GherkinDocument Ast Node that was parsed.

Returns:

  • (GherkinDocument)

    the GherkinDocument Ast Node that was parsed



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

def gherkin_document
  @gherkin_document
end

Class Method Details

.event_idObject



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

def self.event_id
  :gherkin_source_parsed
end