aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--calendar.rb6
-rw-r--r--output/.gitkeep0
3 files changed, 6 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..39d7579
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+output/*.pdf \ No newline at end of file
diff --git a/calendar.rb b/calendar.rb
index 84bd30f..8ebe619 100644
--- a/calendar.rb
+++ b/calendar.rb
@@ -1,5 +1,9 @@
require 'rubygems'
require 'bundler/setup'
-
require 'prawn'
+output_folder = 'output'
+
+Prawn::Document.generate("#{output_folder}/calendar.pdf") do
+ text 'Hello World'
+end \ No newline at end of file
diff --git a/output/.gitkeep b/output/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/output/.gitkeep