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.



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

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

Instance Method Details

#replay(formatter) ⇒ Object



66
67
68
# File 'lib/gherkin/formatter/model.rb', line 66

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