Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/mouse.rb

Overview

Mouse extensions to Array

Instance Method Summary collapse

Instance Method Details

#to_pointCGPoint

Coerce the first two elements of the receiver into a CGPoint

Returns:



51
52
53
# File 'lib/mouse.rb', line 51

def to_point
  CGPoint.new self[0], self[1]
end