Class: GreenPepper::HtmlExampleResult

Inherits:
ExampleResult show all
Defined in:
lib/greenpepper/writer/htmlresult.rb

Instance Attribute Summary collapse

Attributes inherited from ExampleResult

#silent

Instance Method Summary collapse

Methods inherited from ExampleResult

#error?, #failure?, #ignored?, #initialize, #success?, #update_stats

Constructor Details

This class inherits a constructor from GreenPepper::ExampleResult

Instance Attribute Details

#columnObject

Returns the value of attribute column.



12
13
14
# File 'lib/greenpepper/writer/htmlresult.rb', line 12

def column
  @column
end

#rowObject

Returns the value of attribute row.



12
13
14
# File 'lib/greenpepper/writer/htmlresult.rb', line 12

def row
  @row
end

Instance Method Details

#write(cell, options = {}) ⇒ Object



14
15
16
17
18
19
# File 'lib/greenpepper/writer/htmlresult.rb', line 14

def write(cell, options = {})
  unless cell.instance_of? LibXML::XML::Node
    raise GreenPepperArgumentError.new 
  end
  cell
end