Class: Cucumber::HTMLFormatter::Formatter
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb
Instance Attribute Summary collapse
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
-
#initialize(out) ⇒ Formatter
constructor
A new instance of Formatter.
- #process_messages(messages) ⇒ Object
- #write_message(message) ⇒ Object
- #write_post_message ⇒ Object
- #write_pre_message ⇒ Object
Constructor Details
#initialize(out) ⇒ Formatter
Returns a new instance of Formatter.
10 11 12 13 14 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb', line 10 def initialize(out) @out = out @pre_message_written = false @first_message = true end |
Instance Attribute Details
#out ⇒ Object (readonly)
Returns the value of attribute out.
8 9 10 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb', line 8 def out @out end |
Instance Method Details
#process_messages(messages) ⇒ Object
16 17 18 19 20 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb', line 16 def () .each { || () } end |
#write_message(message) ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb', line 29 def () unless @first_message out.puts(',') end out.print(.to_json) @first_message = false end |
#write_post_message ⇒ Object
38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb', line 38 def out.print() end |
#write_pre_message ⇒ Object
22 23 24 25 26 27 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-html-formatter-19.2.0/lib/cucumber/html_formatter.rb', line 22 def return if @pre_message_written out.puts() @pre_message_written = true end |