░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/prawn-2.4.0/manual/layout
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: simple_grid.rb
# frozen_string_literal: true # The document grid on Prawn is just a table-like structure with a defined # number of rows and columns. There are some helpers to create boxes of content # based on the grid coordinates. # # <code>define_grid</code> accepts the following options which are pretty much # self-explanatory: <code>:rows</code>, <code>:columns</code>, # <code>:gutter</code>, <code>:row_gutter</code>, <code>:column_gutter</code> require_relative '../example_helper' filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::ManualBuilder::Example.generate(filename) do # The grid only need to be defined once, but since all the examples should be # able to run alone we are repeating it on every example define_grid(columns: 5, rows: 8, gutter: 10) text 'We defined the grid, roll over to the next page to see its outline' start_new_page grid.show_all end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 boxes.rb
RB
914 B
2023-09-24 03:48
EDIT
📄 content.rb
RB
789 B
2023-09-24 03:48
EDIT
📄 layout.rb
RB
633 B
2023-09-24 03:48
EDIT
📄 simple_grid.rb
RB
887 B
2023-09-24 03:48
EDIT