Class: Cucumber::Core::Ast::Scenario
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::Scenario
- Includes:
- DescribesItself, HasLocation, Names
- Defined in:
- lib/cucumber/core/ast/scenario.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#background ⇒ Object
readonly
Returns the value of attribute background.
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#feature_tags ⇒ Object
readonly
Returns the value of attribute feature_tags.
-
#gherkin_statement ⇒ Object
readonly
Returns the value of attribute gherkin_statement.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes included from Names
Instance Method Summary collapse
Methods included from DescribesItself
Methods included from HasLocation
#attributes, #file, #file_colon_line, #line, #match_locations?, #multiline_arg
Methods included from Names
Instance Attribute Details
#background ⇒ Object (readonly)
Returns the value of attribute background.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def background @background end |
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def comments @comments end |
#feature ⇒ Object
Returns the value of attribute feature.
16 17 18 |
# File 'lib/cucumber/core/ast/scenario.rb', line 16 def feature @feature end |
#feature_tags ⇒ Object (readonly)
Returns the value of attribute feature_tags.
15 16 17 |
# File 'lib/cucumber/core/ast/scenario.rb', line 15 def @feature_tags end |
#gherkin_statement ⇒ Object (readonly)
Returns the value of attribute gherkin_statement.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def gherkin_statement @gherkin_statement end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def keyword @keyword end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def location @location end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
17 18 19 |
# File 'lib/cucumber/core/ast/scenario.rb', line 17 def title @title end |
Instance Method Details
#children ⇒ Object
21 22 23 |
# File 'lib/cucumber/core/ast/scenario.rb', line 21 def children raw_steps end |
#to_sexp ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/cucumber/core/ast/scenario.rb', line 25 def to_sexp sexp = [:scenario, line, keyword, name] comment = comment.to_sexp sexp += [comment] if comment = .to_sexp sexp += if .any? sexp += step_invocations.to_sexp if step_invocations.any? sexp end |