Class: PascalString

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/psd/pascal_string.rb

Overview

Helper class that parses a pascal string, which is a string that has it’s length prepended to it.

Instance Method Summary collapse

Instance Method Details

#getObject



7
8
9
# File 'lib/psd/pascal_string.rb', line 7

def get
  self.data
end

#set(v) ⇒ Object



11
12
13
# File 'lib/psd/pascal_string.rb', line 11

def set(v)
  self.data = v
end