Class: Ole::Types::Lpstr
Class Method Summary collapse
Methods inherited from String
Class Method Details
.dump(str) ⇒ Object
32 33 34 35 |
# File 'lib/ole/types.rb', line 32 def self.dump str # do i need to append the null byte? str.to_s end |
.load(str) ⇒ Object
26 27 28 29 30 |
# File 'lib/ole/types.rb', line 26 def self.load str # not sure if its always there, but there is often a trailing # null byte. new str.chomp(0.chr) end |