Class: Gherkin::Formatter::Model::Background

Inherits:
DescribedStatement show all
Defined in:
lib/gherkin/formatter/model.rb

Instance Attribute Summary

Attributes inherited from DescribedStatement

#description

Attributes inherited from BasicStatement

#comments, #keyword, #line, #name

Instance Method Summary collapse

Methods inherited from BasicStatement

#first_non_comment_line, #line_range

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(comments, keyword, name, description, line) ⇒ Background

Returns a new instance of Background


58
59
60
61
# File 'lib/gherkin/formatter/model.rb', line 58

def initialize(comments, keyword, name, description, line)
  super(comments, keyword, name, description, line)
  @type = "background"
end

Instance Method Details

#replay(formatter) ⇒ Object


63
64
65
# File 'lib/gherkin/formatter/model.rb', line 63

def replay(formatter)
  formatter.background(self)
end