Class: RQRCode::Export::HTML::Cell
- Inherits:
-
Struct
- Object
- Struct
- RQRCode::Export::HTML::Cell
- Defined in:
- lib/rqrcode/export/html.rb
Instance Method Summary collapse
Instance Method Details
#as_html ⇒ Object
39 40 41 |
# File 'lib/rqrcode/export/html.rb', line 39 def as_html "<td class=\"#{html_class}\"></td>" end |
#html_class ⇒ Object
43 44 45 |
# File 'lib/rqrcode/export/html.rb', line 43 def html_class qr.checked?(row_index, col_index) ? "black" : "white" end |