class RQRCode::Export::HTML::Row

Public Instance Methods

as_html() click to toggle source
# File lib/rqrcode/export/html.rb, line 27
def as_html
  ['<tr>', cells.map(&:as_html).join, '</tr>'].join
end
cells() click to toggle source
# 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