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



27
28
29
# File 'lib/rqrcode/export/html.rb', line 27

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

#cellsObject



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