teaching_printables 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/teaching_printables/grid_sheet/grid_sheet.rb +9 -0
- data/teaching_printables.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e8cc77020eb961d443b4a55b7ee55957a595ccd
|
4
|
+
data.tar.gz: 45e54de39a3445a49b6f3cd8b7143e088fa27ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97d554c065d4b76fbe75cc71127e79204111a4e986aa7032cf34395af2d8bc39cafda5874b665fe300076b7a62ba937f9a0e9f80f66b9198f6f078f5228930c2
|
7
|
+
data.tar.gz: c6931e02bafd8a5bec5ca7feef2946a63cf35ace1608aba85257e3be15425e756c059f4b95fd3fe4e9b63fe2ff5a7bc66b7c93cb4c1cd91060591ef854cadb6b
|
@@ -3,7 +3,16 @@ require "forwardable"
|
|
3
3
|
require_relative "../utilities"
|
4
4
|
|
5
5
|
module TeachingPrintables
|
6
|
+
# Creates grid layouts for flashcards or math sheets. Delegates Prawn methods to Prawn::Document.
|
6
7
|
class GridSheet
|
8
|
+
# Make grid-based pdf page(s)
|
9
|
+
#
|
10
|
+
# Example:
|
11
|
+
# >> gs = TeachingPrintables.GridSheet.new
|
12
|
+
# >> content = (1..20).to_a.map{|i| i.to_s}
|
13
|
+
# >> gs.add_content(content)
|
14
|
+
# >> gs.page_number
|
15
|
+
# >> gs.save_as("mypdf.pdf")
|
7
16
|
extend Forwardable
|
8
17
|
include Prawn::View
|
9
18
|
|
data/teaching_printables.gemspec
CHANGED