Class: GitIgnoreRust::StringArray

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/gitignore_rb/rust.rb

Overview

Struct used to describe a Ruby Array of Strings being passed from Rust.

Instance Method Summary collapse

Instance Method Details

#to_aObject



15
16
17
# File 'lib/gitignore_rb/rust.rb', line 15

def to_a
  self[:data].get_array_of_string(0, self[:len]).compact
end