Class: GreenPepper::WriteTextExampleResult
- Inherits:
-
HtmlExampleResult
- Object
- ExampleResult
- HtmlExampleResult
- GreenPepper::WriteTextExampleResult
- Defined in:
- lib/greenpepper/writer/htmlresult.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from HtmlExampleResult
Attributes inherited from ExampleResult
Instance Method Summary collapse
-
#initialize(result, silent = false) ⇒ WriteTextExampleResult
constructor
A new instance of WriteTextExampleResult.
- #write(cell, options = {}) ⇒ Object
Methods inherited from ExampleResult
#error?, #failure?, #ignored?, #success?, #update_stats
Constructor Details
#initialize(result, silent = false) ⇒ WriteTextExampleResult
Returns a new instance of WriteTextExampleResult.
26 27 28 29 |
# File 'lib/greenpepper/writer/htmlresult.rb', line 26 def initialize(result, silent=false) super(silent) @result = result end |
Instance Method Details
#write(cell, options = {}) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/greenpepper/writer/htmlresult.rb', line 31 def write(cell, = {}) cell.content = "" if cell.content == " " cell = super(cell, ) cell << @result cell end |