Class: Cucumber::Formatter::LegacyApi::Ast::Tags

Inherits:
Struct
  • Object
show all
Defined in:
lib/cucumber/formatter/legacy_api/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



278
279
280
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 278

def tags
  @tags
end

Instance Method Details

#accept(formatter) ⇒ Object



279
280
281
282
283
284
285
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 279

def accept(formatter)
  formatter.before_tags tags
  tags.each do |tag|
    formatter.tag_name tag.name
  end
  formatter.after_tags tags
end