summaryrefslogtreecommitdiff
path: root/lib/plist/parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plist/parser.rb')
-rwxr-xr-xlib/plist/parser.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb
index 705d823..4835f8b 100755
--- a/lib/plist/parser.rb
+++ b/lib/plist/parser.rb
@@ -130,10 +130,8 @@ module Plist
end
class PTag
- @@mappings = {}
-
def self.mappings
- @@mappings
+ @mappings ||= {}
end
def self.inherited(sub_class)
@@ -141,7 +139,7 @@ module Plist
key.gsub!(/^plist::/, '')
key.gsub!(/^p/, '') unless key == "plist"
- @@mappings[key] = sub_class
+ mappings[key] = sub_class
end
attr_accessor :text, :children