Class: Cucumber::Events::GherkinSourceRead
- 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
-
#body ⇒ Object
readonly
The raw Gherkin source.
-
#path ⇒ Object
readonly
The path to the file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, body) ⇒ GherkinSourceRead
constructor
A new instance of GherkinSourceRead.
Methods inherited from Base
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
#body ⇒ Object (readonly)
The raw Gherkin source
11 12 13 |
# File 'lib/cucumber/events/gherkin_source_read.rb', line 11 def body @body end |
#path ⇒ Object (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_id ⇒ Object
13 14 15 |
# File 'lib/cucumber/events/gherkin_source_read.rb', line 13 def self.event_id :gherkin_source_read end |