Created
September 19, 2011 02:05
-
-
Save b-adams/1225861 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
Test := String clone | |
//==> | |
Test = "Hello" | |
//==> Hello | |
Test type | |
//==> Sequence | |
Test size | |
//==> 5 | |
Test = 7 | |
//==> 7 | |
Test type | |
//==> Number | |
Test size | |
// | |
// Exception: Number does not respond to 'size' | |
// --------- | |
// Number size Command Line 1 | |
// | |
Number size := method(self) | |
//==> method( | |
// self | |
//) | |
Test size | |
//==> 7 | |
// Wait... now it works! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment