class RQRCode::Export::HTML::Cell

Public Instance Methods

as_html() click to toggle source
# File lib/rqrcode/export/html.rb, line 39
def as_html
  "<td class=\"#{html_class}\"></td>"
end
html_class() click to toggle source
# File lib/rqrcode/export/html.rb, line 43
def html_class
  qr.checked?(row_index, col_index) ? "black" : "white"
end