Skip to content

Instantly share code, notes, and snippets.

@b-adams
Created September 19, 2011 02:05
Show Gist options
  • Save b-adams/1225861 to your computer and use it in GitHub Desktop.
Save b-adams/1225861 to your computer and use it in GitHub Desktop.
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