Class: Gherkin::AST::Node

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

Direct Known Subclasses

Background, Feature, Scenario, Step, Tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



4
5
6
# File 'lib/gherkin/ast.rb', line 4

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



4
5
6
# File 'lib/gherkin/ast.rb', line 4

def line
  @line
end

Instance Method Details

#accept(visitor) ⇒ Object



6
7
8
9
# File 'lib/gherkin/ast.rb', line 6

def accept(visitor)
  name = self.class.name.split('::').last
  visitor.send("visit_#{name}".to_sym, self)
end