Parent

Plist::Listener

Attributes

result[RW]

include REXML::StreamListener

open[RW]

include REXML::StreamListener

Public Class Methods

new() click to toggle source

(Not documented)

    # File lib/plist/parser.rb, line 38
38:     def initialize
39:       @result = nil
40:       @open   = Array.new
41:     end

Public Instance Methods

tag_end(name) click to toggle source

(Not documented)

    # File lib/plist/parser.rb, line 52
52:     def tag_end(name)
53:       last = @open.pop
54:       if @open.empty?
55:         @result = last.to_ruby
56:       else
57:         @open.last.children.push last
58:       end
59:     end
tag_start(name, attributes) click to toggle source

(Not documented)

    # File lib/plist/parser.rb, line 44
44:     def tag_start(name, attributes)
45:       @open.push PTag::mappings[name].new
46:     end
text( contents ) click to toggle source

(Not documented)

    # File lib/plist/parser.rb, line 48
48:     def text( contents )
49:       @open.last.text = contents if @open.last
50:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.