Method: Squib::Args::SprueFile#validate_template_file
- Defined in:
- lib/squib/args/sprue_file.rb
#validate_template_file(arg) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/squib/args/sprue_file.rb', line 28 def validate_template_file(arg) return nil if arg.nil? thefile = File.exist?(arg) ? arg : builtin(arg) raise "File #{File.(arg)} does not exist!" unless File.exist? thefile File.(thefile) end |