Class: GherkinRuby::AST::Step
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, keyword) ⇒ Step
constructor
A new instance of Step.
Methods inherited from Node
Constructor Details
#initialize(name, keyword) ⇒ Step
Returns a new instance of Step.
76 77 78 79 |
# File 'lib/gherkin_ruby/ast.rb', line 76 def initialize(name, keyword) @name = name.to_s @keyword = keyword.to_s end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
75 76 77 |
# File 'lib/gherkin_ruby/ast.rb', line 75 def keyword @keyword end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
75 76 77 |
# File 'lib/gherkin_ruby/ast.rb', line 75 def name @name end |