Sha256: f732dc3306b3146b4b986927a8f05bba648a15a4606e2a4fc7e358d4fd34d72b
Contents?: true
Size: 418 Bytes
Versions: 105
Compression:
Stored size: 418 Bytes
Contents
class NSError def self.new(message='Error', options={}) domain = options[:domain] || 'Error' code = options[:code] || 0 info = {NSLocalizedDescriptionKey => message} if options[:userInfo] info.merge! options[:userInfo] end NSError.alloc.initWithDomain( domain, code: code, userInfo: info ) end end
Version data entries
105 entries across 105 versions & 1 rubygems