Sha256: 458f5d59db4daae7a3e05d14fb89cffc27b217c017412e8f421213591e43b720
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
class NSString def post_notification(object=nil, user_info=nil) if user_info and not Hash === user_info raise TypeError("Invalid argument #{user_info.class.name} sent to String.post_notification") end if user_info NSNotificationCenter.defaultCenter.postNotificationName(self, object:object, userInfo:user_info) else NSNotificationCenter.defaultCenter.postNotificationName(self, object:object) end end end class Object end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sugarcube-0.2.0 | lib/sugarcube/notifications.rb |