Class: Gherkin::AST::Tag
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name) ⇒ Tag
constructor
A new instance of Tag.
Methods inherited from Node
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
75 76 77 |
# File 'lib/gherkin/ast.rb', line 75 def name @name end |