diff options
author | Patrick Way <patrick@reflexions.co> | 2016-01-27 21:54:08 -0500 |
---|---|---|
committer | Patrick Way <patrick@reflexions.co> | 2016-01-27 21:54:08 -0500 |
commit | 5f2cc6c8ebe291dd2d168a49190aa9508a173bab (patch) | |
tree | 8e87c57648a6cda1aed0279cdb3e8db2a06dba8c | |
parent | 12eb82d283cab148183c37c07e3f75a309969dec (diff) | |
parent | 6d8529c363fb0683b1ffb49df807e4c44bf64ac7 (diff) | |
download | plist-5f2cc6c8ebe291dd2d168a49190aa9508a173bab.tar.gz |
Merge pull request #26 from HCLarsen/exists-to-exist
Updated dprecated File.exists? to File.exist?
-rw-r--r-- | lib/plist/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb index a3e551d..a5f2450 100644 --- a/lib/plist/parser.rb +++ b/lib/plist/parser.rb @@ -63,7 +63,7 @@ module Plist def initialize( plist_data_or_file, listener ) if plist_data_or_file.respond_to? :read @xml = plist_data_or_file.read - elsif File.exists? plist_data_or_file + elsif File.exist? plist_data_or_file @xml = File.read( plist_data_or_file ) else @xml = plist_data_or_file |