Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/accessibility/bridge/common.rb
Overview
accessibility-core extensions to Array
Instance Method Summary collapse
-
#to_point ⇒ CGPoint
Coerce the first two elements of the receiver into a CGPoint.
-
#to_rect ⇒ CGRect
Coerce the first four elements of the receiver into a CGRect.
-
#to_size ⇒ CGSize
Coerce the first two elements of the receiver into a CGSize.
Instance Method Details
#to_point ⇒ CGPoint
Coerce the first two elements of the receiver into a CGPoint
38 39 40 |
# File 'lib/accessibility/bridge/common.rb', line 38 def to_point CGPoint.new self[0], self[1] end |