Class: NSString

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-ui-geometry/nsstring.rb

Instance Method Summary collapse

Instance Method Details

#to_pointObject



2
3
4
# File 'lib/motion-ui-geometry/nsstring.rb', line 2

def to_point
  CGPointFromString(self)
end

#to_rectObject



10
11
12
# File 'lib/motion-ui-geometry/nsstring.rb', line 10

def to_rect
  CGRectFromString(self)
end

#to_sizeObject



6
7
8
# File 'lib/motion-ui-geometry/nsstring.rb', line 6

def to_size
  CGSizeFromString(self)
end

#to_transformObject



14
15
16
# File 'lib/motion-ui-geometry/nsstring.rb', line 14

def to_transform
  CGAffineTransformFromString(self)
end