Module: Plist
- Defined in:
- lib/plist/parser.rb,
lib/plist.rb,
lib/plist/ascii.rb,
lib/plist/generator.rb
Overview
See Plist::Emit.
Defined Under Namespace
Modules: Emit Classes: AsciiParser, Listener, PArray, PData, PDate, PDict, PFalse, PInteger, PKey, PList, PReal, PString, PTag, PTrue, StreamParser
Constant Summary collapse
- VERSION =
'3.2'
Class Method Summary collapse
-
.parse_ascii(string, opts = {}) ⇒ Object
string - the plist string to parse opts - options (see
AsciiParser.new). -
.parse_xml(filename_or_xml) ⇒ Object
[email protected] so that I can implement the proper support.
Class Method Details
.parse_ascii(string, opts = {}) ⇒ Object
string - the plist string to parse opts - options (see AsciiParser.new)
12 13 14 |
# File 'lib/plist/ascii.rb', line 12 def self.parse_ascii(string, opts = {}) AsciiParser.new(string, opts).parse end |
.parse_xml(filename_or_xml) ⇒ Object
[email protected] so that I can implement the proper support.
24 25 26 27 28 29 30 |
# File 'lib/plist/parser.rb', line 24 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 |