include REXML::StreamListener
include REXML::StreamListener
# File lib/facter/util/plist/parser.rb, line 51 def tag_end(name) last = @open.pop if @open.empty? @result = last.to_ruby else @open.last.children.push last end end
# File lib/facter/util/plist/parser.rb, line 43 def tag_start(name, attributes) @open.push PTag::mappings[name].new end
# File lib/facter/util/plist/parser.rb, line 47 def text( contents ) @open.last.text = contents if @open.last end
# File lib/facter/util/plist/parser.rb, line 37 def initialize @result = nil @open = Array.new end