Sha256: 3ea21104eaf078c600088c233a9062347f645eead302d6a4f037c19596d3397f
Contents?: true
Size: 420 Bytes
Versions: 14
Compression:
Stored size: 420 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
14 entries across 14 versions & 1 rubygems