Class: RQRCode::Export::HTML::Row

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

Instance Method Summary collapse

Instance Method Details

#as_htmlObject



29
30
31
# File 'lib/rqrcode/export/html.rb', line 29

def as_html
  ["<tr>", cells.map(&:as_html).join, "</tr>"].join
end

#cellsObject



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