Class: Cucumber::Formatter::LegacyApi::Ast::Comments
- Defined in:
- lib/cucumber/formatter/legacy_api/ast.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
Instance Method Summary collapse
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments
56 57 58 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 56 def comments @comments end |
Instance Method Details
#accept(formatter) ⇒ Object
57 58 59 60 61 62 63 64 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 57 def accept(formatter) return if comments.empty? formatter.before_comment comments comments.each do |comment| formatter.comment_line comment.to_s.strip end formatter.after_comment comments end |