Class: Cucumber::Core::Ast::Tag

Inherits:
Object
  • Object
show all
Includes:
HasLocation
Defined in:
lib/cucumber/core/ast/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasLocation

#all_locations, #attributes, #comments, #file, #file_colon_line, #line, #location, #multiline_arg, #tags

Constructor Details

#initialize(location, name) ⇒ Tag

Returns a new instance of Tag.



10
11
12
13
# File 'lib/cucumber/core/ast/tag.rb', line 10

def initialize(location, name)
  @location = location
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/cucumber/core/ast/tag.rb', line 8

def name
  @name
end

Instance Method Details

#inspectObject



15
16
17
# File 'lib/cucumber/core/ast/tag.rb', line 15

def inspect
  %{#<#{self.class} "#{name}" (#{location})>}
end