Module: TeachingPrintables
- Extended by:
- TeachingPrintables
- Included in:
- TeachingPrintables
- Defined in:
- lib/teaching_printables/factory.rb,
lib/teaching_printables.rb,
lib/teaching_printables/version.rb,
lib/teaching_printables/gridable.rb,
lib/teaching_printables/shapeable.rb,
lib/teaching_printables/templatable.rb,
lib/teaching_printables/tp_document.rb,
lib/teaching_printables/quad_rulable.rb
Overview
require_relative “./templatable”
Defined Under Namespace
Modules: Factory, Gridable, QuadRulable, Shapeable, Templatable Classes: TPDocument
Constant Summary collapse
- BASEDIR =
The base source directory as installed on the system
File.(File.join(dir, '..'))
- GRAPHIC_EXTENSIONS =
[".jpg",".JPG",".png",".jpeg"]
- VERSION =
"0.0.5"
Instance Method Summary collapse
Instance Method Details
#is_image_file?(filename) ⇒ Boolean
25 26 27 |
# File 'lib/teaching_printables.rb', line 25 def is_image_file?(filename) !filename.start_with?(".") && GRAPHIC_EXTENSIONS.include?(File.extname(filename)) end |