lib/awestruct/config.rb in awestruct-0.6.1 vs lib/awestruct/config.rb in awestruct-0.6.2

- old
+ new

@@ -41,10 +41,10 @@ @debug = opts.debug @perf = opts.perf_log # Dir[] doesn't like empty list ignore_file = File.join(@dir, ".awestruct_ignore") - if File.exists?(ignore_file) + if File.exist?(ignore_file) ignore_stmts = IO.read(ignore_file).each_line.map(&:strip) end @ignore = (!ignore_stmts.nil? and ignore_stmts.size > 0) ? Dir[*ignore_stmts] : []