Class: Str
- Inherits:
-
FFI::AutoPointer
- Object
- FFI::AutoPointer
- Str
- Defined in:
- lib/schnorrkel_rb.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
7 8 9 |
# File 'lib/schnorrkel_rb.rb', line 7 def self.release(ptr) SchnorrkelRb.free(ptr) end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/schnorrkel_rb.rb', line 11 def to_s @str ||= read_string.force_encoding("UTF-8") end |