Created
December 29, 2008 09:40
-
-
Save drnic/41232 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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