Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/sugarcube/array.rb
Direct Known Subclasses
SugarCube::CoreGraphics::EdgeInsets, SugarCube::CoreGraphics::Offset, SugarCube::CoreGraphics::Point, SugarCube::CoreGraphics::Rect, SugarCube::CoreGraphics::Size
Instance Method Summary collapse
Instance Method Details
#to_pointer(type) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/sugarcube/array.rb', line 3 def to_pointer(type) ret = Pointer.new(type, self.length) self.each_index do |i| ret[i] = self[i] end ret end |