Class: Cucumber::Core::Ast::OutlineStep
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::OutlineStep
- Includes:
- DescribesItself, HasLocation
- Defined in:
- lib/cucumber/core/ast/outline_step.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#multiline_arg ⇒ Object
readonly
Returns the value of attribute multiline_arg.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(language, location, comments, keyword, text, multiline_arg) ⇒ OutlineStep
constructor
A new instance of OutlineStep.
- #inspect ⇒ Object
- #to_s ⇒ Object
- #to_step(row) ⇒ Object
Methods included from DescribesItself
Methods included from HasLocation
#all_locations, #attributes, #file, #file_colon_line, #line, #tags
Constructor Details
#initialize(language, location, comments, keyword, text, multiline_arg) ⇒ OutlineStep
Returns a new instance of OutlineStep.
16 17 18 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 16 def initialize(language, location, comments, keyword, text, multiline_arg) @language, @location, @comments, @keyword, @text, @multiline_arg = language, location, comments, keyword, text, multiline_arg end |
Instance Attribute Details
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
14 15 16 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 14 def comments @comments end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
14 15 16 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 14 def keyword @keyword end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
14 15 16 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 14 def language @language end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
14 15 16 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 14 def location @location end |
#multiline_arg ⇒ Object (readonly)
Returns the value of attribute multiline_arg.
14 15 16 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 14 def multiline_arg @multiline_arg end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
14 15 16 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 14 def text @text end |
Instance Method Details
#inspect ⇒ Object
28 29 30 31 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 28 def inspect keyword_and_text = [keyword, text].join(": ") %{#<#{self.class} "#{keyword_and_text}" (#{location})>} end |
#to_s ⇒ Object
24 25 26 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 24 def to_s text end |
#to_step(row) ⇒ Object
20 21 22 |
# File 'lib/cucumber/core/ast/outline_step.rb', line 20 def to_step(row) Ast::ExpandedOutlineStep.new(self, language, row.location, comments, keyword, row.(text), replace_multiline_arg(row)) end |