Skip to content

Instantly share code, notes, and snippets.

@drnic
Created December 29, 2008 09:40
Show Gist options
  • Save drnic/41232 to your computer and use it in GitHub Desktop.
Save drnic/41232 to your computer and use it in GitHub Desktop.
class SpeechController
# from - (void)speechSynthesizer:(NSSpeechSynthesizer *)sender willSpeakWord:(NSRange)wordToSpeak ofString:(NSString *)text
def speechSynthesizer(sender, willSpeakWord: wordToSpeak, ofString: text)
end
# from speechSynthesizer:willSpeakWord:ofString:
def speechSynthesizer(speechSynthesizer, willSpeakWord: speakWord, ofString: string)
end
def someMethod
# self.m expanded becomes
self.speechSynthesizer(sender, willSpeakWord: wordToSpeak, ofString: text)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment