Class: Svn::CountedStringStruct

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/svn/counted_strings.rb

Overview

a struct for interacting with svn_string_t values

Instance Method Summary collapse

Instance Method Details

#inspectObject



21
22
23
# File 'lib/svn/counted_strings.rb', line 21

def inspect
  to_s.inspect
end

#to_sObject

returns a new ruby String with the CountedString’s contents.



17
18
19
# File 'lib/svn/counted_strings.rb', line 17

def to_s
  self[:data].read_string( self[:length] )
end