Class: Gherkin::AST::Step

Inherits:
Node
  • Object
show all
Defined in:
lib/gherkin/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Methods inherited from Node

#accept

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

#nameObject (readonly)

Returns the value of attribute name.



66
67
68
# File 'lib/gherkin/ast.rb', line 66

def name
  @name
end