Class: SerializableObject

Inherits:
Object show all
Defined in:
lib/puppet/vendor/plist/test/test_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fooObject

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_nodeObject



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