Class: Gherkin::AST::Step
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name) ⇒ Step
constructor
A new instance of Step.
Methods inherited from Node
Constructor Details
#initialize(name) ⇒ Step
Returns a new instance of Step.
67 68 69 70 71 |
# File 'lib/gherkin/ast.rb', line 67 def initialize(name) @line, @column = name.line_and_column @name = name.to_s end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/gherkin/ast.rb', line 66 def name @name end |