Sha256: ff50ab5b375c3541f2cdd061d17cd13b8abbdbf70b9fde95ffd028bea709ee3d
Contents?: true
Size: 392 Bytes
Versions: 4
Compression:
Stored size: 392 Bytes
Contents
class NSRect include PurplishFrame::Rect def top origin.y + size.height end def top=(y) origin.y = y - size.height end def bottom origin.y end def bottom=(bottom) origin.y = bottom end def center_y bottom+size.height/2 end def center_y=(center_y) self.bottom = center_y-size.height/2 end def height=(h) size.height = h end end
Version data entries
4 entries across 4 versions & 1 rubygems