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.



76
77
78
79
# File 'lib/gherkin/formatter/model.rb', line 76

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

Instance Method Details

#replay(formatter) ⇒ Object



81
82
83
# File 'lib/gherkin/formatter/model.rb', line 81

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