Class: Xpub::CallBook::CallImgFile
- Inherits:
-
CallSrcFile
- Object
- CallSrcFile
- Xpub::CallBook::CallImgFile
- Defined in:
- lib/xpub/dsl/src_file.rb
Instance Attribute Summary
Attributes inherited from CallSrcFile
Instance Method Summary collapse
Methods inherited from CallSrcFile
#debug, #full_path, #initialize
Constructor Details
This class inherits a constructor from Xpub::CallBook::CallSrcFile
Instance Method Details
#validate ⇒ Object
31 32 33 34 |
# File 'lib/xpub/dsl/src_file.rb', line 31 def validate super raise "Image File Ext is not Image Ext. #{@file}" unless @file =~ /.(jpeg|jpg|png|bmp|pdf)$/ end |