Class: Gherkin::AST::Tag

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) ⇒ Tag

Returns a new instance of Tag.



76
77
78
79
80
# File 'lib/gherkin/ast.rb', line 76

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.



75
76
77
# File 'lib/gherkin/ast.rb', line 75

def name
  @name
end