1module NSStringOverrides 2 def new_definition 3 # All the args are stringed together (so no spaces) in the original ref 4 5 case @name 6 when 'initWithContentsOfURL:encoding:error:' 7 return '- (id)initWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error' 8 when 'initWithContentsOfURL:usedEncoding:error:' 9 return '- (id)initWithContentsOfURL:(NSURL *)url usedEncoding:(NSStringEncoding *)enc error:(NSError **)error' 10 end 11 end 12end