Class: Plist::PTag
- Inherits:
-
Object
- Object
- Plist::PTag
- Defined in:
- lib/facter/util/plist/parser.rb
Direct Known Subclasses
PArray, PData, PDate, PDict, PFalse, PInteger, PKey, PList, PReal, PString, PTrue
Constant Summary
- @@mappings =
{ }
Instance Attribute Summary (collapse)
-
- (Object) children
Returns the value of attribute children.
-
- (Object) text
Returns the value of attribute text.
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (PTag) initialize
constructor
A new instance of PTag.
- - (Object) to_ruby
Constructor Details
- (PTag) initialize
A new instance of PTag
125 126 127 |
# File 'lib/facter/util/plist/parser.rb', line 125 def initialize @children = Array.new end |
Instance Attribute Details
- (Object) children
Returns the value of attribute children
124 125 126 |
# File 'lib/facter/util/plist/parser.rb', line 124 def children @children end |
- (Object) text
Returns the value of attribute text
124 125 126 |
# File 'lib/facter/util/plist/parser.rb', line 124 def text @text end |
Class Method Details
+ (Object) inherited(sub_class)
116 117 118 119 120 121 122 |
# File 'lib/facter/util/plist/parser.rb', line 116 def PTag::inherited( sub_class ) key = sub_class.to_s.downcase key.gsub!(/^plist::/, '' ) key.gsub!(/^p/, '') unless key == "plist" @@mappings[key] = sub_class end |
+ (Object) mappings
112 113 114 |
# File 'lib/facter/util/plist/parser.rb', line 112 def PTag::mappings @@mappings end |
Instance Method Details
- (Object) to_ruby
129 130 131 |
# File 'lib/facter/util/plist/parser.rb', line 129 def to_ruby raise "Unimplemented: " + self.class.to_s + "#to_ruby on #{self.inspect}" end |