Method: Cfruby::Cfp_MapOptions#check_pattern
- Defined in:
- lib/libcfenjin/cfp_mapoptions.rb
#check_pattern(attrib, filename) ⇒ Object
If a pattern parameter is supported make sure recurse is set to 1 if the filename points to a directory.
206 207 208 209 210 |
# File 'lib/libcfenjin/cfp_mapoptions.rb', line 206 def check_pattern attrib,filename return attrib if attrib['recurse']!=nil attrib['recurse']='1' if attrib['pattern'] and File.directory?(filename) attrib end |