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
27 28 29 |
# File 'lib/rqrcode/export/html.rb', line 27 def as_html ['<tr>', cells.map(&:as_html).join, '</tr>'].join end |
#cells ⇒ Object
31 32 33 |
# File 'lib/rqrcode/export/html.rb', line 31 def cells qr.modules.each_with_index.map { |qr_module, col_index| Cell.new(qr, col_index, row_index) } end |