Class: RQRCode::Export::HTML::Cell

Inherits:
Struct
  • Object
show all
Defined in:
lib/rqrcode/export/html.rb

Instance Method Summary collapse

Instance Method Details

#as_htmlObject



39
40
41
# File 'lib/rqrcode/export/html.rb', line 39

def as_html
  "<td class=\"#{html_class}\"></td>"
end

#html_classObject



43
44
45
# File 'lib/rqrcode/export/html.rb', line 43

def html_class
  qr.checked?(row_index, col_index) ? "black" : "white"
end