Created
August 14, 2015 03:47
-
-
Save 0x0dea/cc4b9f725589e85b6124 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
@foo = [] | |
def @foo.<< val | |
warn "pushed #{val}" | |
push val | |
end | |
@foo << 1 | |
@foo << 2 | |
@foo << 3 | |
p @foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment