Class: Gherkin::AST::Node
- Inherits:
-
Object
- Object
- Gherkin::AST::Node
- Defined in:
- lib/gherkin/ast.rb
Direct Known Subclasses
Background, Feature, Scenario, Step, Tag
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
4 5 6 |
# File 'lib/gherkin/ast.rb', line 4 def column @column end |
#line ⇒ Object (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 |