Class Ole::Types::Lpstr
In: lib/ole/types/base.rb
Parent: String
String Data Lpstr Clsid Lpwstr Section Enumerable DateTime FileTime Constants Variant::Constants Storage\n[lib/ole/storage/base.rb\nlib/ole/storage/file_system.rb\nlib/ole/storage/meta_data.rb] PropertySet lib/ole/storage/file_system.rb lib/ole/types/property_set.rb lib/ole/types/base.rb Constants Constants Variant Types Ole dot/m_9_0.png

Methods

dump   load  

Public Class methods

[Source]

    # File lib/ole/types/base.rb, line 32
32:                         def self.dump str
33:                                 # do i need to append the null byte?
34:                                 str.to_s
35:                         end

[Source]

    # File lib/ole/types/base.rb, line 26
26:                         def self.load str
27:                                 # not sure if its always there, but there is often a trailing
28:                                 # null byte.
29:                                 new str.chomp(0.chr)
30:                         end

[Validate]