Class: Cucumber::Core::Ast::Tag
- Inherits:
-
Object
- Object
- Cucumber::Core::Ast::Tag
- Includes:
- HasLocation
- Defined in:
- lib/cucumber/core/ast/tag.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(location, name) ⇒ Tag
constructor
A new instance of Tag.
- #inspect ⇒ Object
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.
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
#name ⇒ Object (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
#inspect ⇒ Object
14 15 16 |
# File 'lib/cucumber/core/ast/tag.rb', line 14 def inspect %{#<#{self.class} "#{name}" (#{location})>} end |