Class: Turnip::Node::Tag

Inherits:
Base
  • Object
show all
Defined in:
lib/turnip/node/tag.rb

Overview

Note:

Location metadata generated by Gherkin

{

type: :Tag,
location: { line: 10, column: 3 },
name: '@tag'

}

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from HasLocation

#line, #location

Constructor Details

This class inherits a constructor from Turnip::Node::Base

Instance Method Details

#nameObject



15
16
17
# File 'lib/turnip/node/tag.rb', line 15

def name
  @name ||= @raw.name.gsub(/^@/, '')
end