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

#attributes, #comments, #file, #file_colon_line, #line, #location, #match_locations?, #multiline_arg, #tags

Constructor Details

#initialize(location, name) ⇒ Tag

Returns a new instance of Tag.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#inspectObject



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

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