Class: RQRCode::Export::HTML::Row
- Inherits:
-
Struct
- Object
- Struct
- RQRCode::Export::HTML::Row
- Defined in:
- lib/rqrcode/export/html.rb
Instance Method Summary collapse
Instance Method Details
#as_html ⇒ Object
29 30 31 |
# File 'lib/rqrcode/export/html.rb', line 29 def as_html ["<tr>", cells.map(&:as_html).join, "</tr>"].join end |
#cells ⇒ Object
33 34 35 |
# File 'lib/rqrcode/export/html.rb', line 33 def cells qr.modules.each_with_index.map { |qr_module, col_index| Cell.new(qr, col_index, row_index) } end |