Class: Lecter::HtmlRow

Inherits:
Object
  • Object
show all
Defined in:
lib/lecter/html_row.rb

Constant Summary collapse

ARROW =
'-> '
BACKGROUND_INCLUDED_ROW =
'#4a4a4a'
NEW_LINE_SYMBOL =
"\n"

Instance Method Summary collapse

Constructor Details

#initialize(row, row_number, row_executable, order_of_executed_lines) ⇒ HtmlRow

Returns a new instance of HtmlRow.



9
10
11
12
13
14
# File 'lib/lecter/html_row.rb', line 9

def initialize(row, row_number, row_executable, order_of_executed_lines)
  @row = row
  @row_number = row_number
  @row_executable = row_executable
  @order_of_executed_lines = order_of_executed_lines
end

Instance Method Details

#createObject



16
17
18
# File 'lib/lecter/html_row.rb', line 16

def create
  "<div style='#{style}'><code>#{html_row}</code></div>"
end