Class: Svn::CountedStringStruct
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Svn::CountedStringStruct
- Defined in:
- lib/svn/counted_strings.rb
Overview
a struct for interacting with svn_string_t values
Instance Method Summary collapse
- #inspect ⇒ Object
-
#to_s ⇒ Object
returns a new ruby String with the CountedString’s contents.
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/svn/counted_strings.rb', line 21 def inspect to_s.inspect end |
#to_s ⇒ Object
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 |