Class: Gherkin::Formatter::Model::Feature

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

Instance Attribute Summary

Attributes inherited from TagStatement

#tags

Attributes inherited from DescribedStatement

#description

Attributes inherited from BasicStatement

#comments, #keyword, #line, #name

Instance Method Summary collapse

Methods inherited from TagStatement

#first_non_comment_line

Methods inherited from BasicStatement

#first_non_comment_line, #line_range

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(comments, tags, keyword, name, description, line) ⇒ Feature

Returns a new instance of Feature.



49
50
51
# File 'lib/gherkin/formatter/model.rb', line 49

def initialize(comments, tags, keyword, name, description, line)
  super(comments, tags, keyword, name, description, line)
end

Instance Method Details

#replay(formatter) ⇒ Object



53
54
55
# File 'lib/gherkin/formatter/model.rb', line 53

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