Class: SerializableObject
- Defined in:
- lib/puppet/vendor/plist/test/test_generator.rb
Instance Attribute Summary collapse
-
#foo ⇒ Object
Returns the value of attribute foo.
Instance Method Summary collapse
-
#initialize(str) ⇒ SerializableObject
constructor
A new instance of SerializableObject.
- #to_plist_node ⇒ Object
Constructor Details
#initialize(str) ⇒ SerializableObject
Returns a new instance of SerializableObject.
14 15 16 |
# File 'lib/puppet/vendor/plist/test/test_generator.rb', line 14 def initialize(str) @foo = str end |
Instance Attribute Details
#foo ⇒ Object
Returns the value of attribute foo.
12 13 14 |
# File 'lib/puppet/vendor/plist/test/test_generator.rb', line 12 def foo @foo end |
Instance Method Details
#to_plist_node ⇒ Object
18 19 20 |
# File 'lib/puppet/vendor/plist/test/test_generator.rb', line 18 def to_plist_node return "<string>#{CGI::escapeHTML @foo}</string>" end |