Class: RQRCode::Export::HTML::Rows

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

Instance Method Summary collapse

Instance Method Details

#as_htmlObject



19
20
21
# File 'lib/rqrcode/export/html.rb', line 19

def as_html
  rows.map(&:as_html).join
end

#rowsObject



23
24
25
# File 'lib/rqrcode/export/html.rb', line 23

def rows
  qr.modules.each_with_index.map { |qr_module, row_index| Row.new(qr, qr_module, row_index) }
end