Method: Yadriggy::C::FFIArray#to_a
- Defined in:
- lib/yadriggy/c/ffi.rb
#to_a(*args, &proc) ⇒ Object
Converts all the elements into an array. This method is available only within Ruby.
38 39 40 |
# File 'lib/yadriggy/c/ffi.rb', line 38 def to_a(*args, &proc) Array.new(size) {|i| self[i] } end |