Module: Plist
- Defined in:
- lib/plist/parser.rb,
lib/plist.rb,
lib/plist/version.rb,
lib/plist/generator.rb
Overview
plist
Copyright 2006-2010 Ben Bleything and Patrick May Distributed under the MIT License
Defined Under Namespace
Modules: Emit Classes: Listener, PArray, PData, PDate, PDict, PFalse, PInteger, PKey, PList, PReal, PString, PTag, PTrue, StreamParser
Constant Summary collapse
- VERSION =
'3.3.0'.freeze
Class Method Summary collapse
-
.parse_xml(filename_or_xml) ⇒ Object
[email protected] so that I can implement the proper support.
Class Method Details
.parse_xml(filename_or_xml) ⇒ Object
[email protected] so that I can implement the proper support.
25 26 27 28 29 30 31 |
# File 'lib/plist/parser.rb', line 25 def Plist::parse_xml( filename_or_xml ) listener = Listener.new #parser = REXML::Parsers::StreamParser.new(File.new(filename), listener) parser = StreamParser.new(filename_or_xml, listener) parser.parse listener.result end |