Created
August 22, 2012 00:19
-
-
Save westonplatter/3420744 to your computer and use it in GitHub Desktop.
open_classing
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 Tweet | |
attr_accessor :status | |
attr_reader :created_at | |
def initialize(status) | |
@status = status | |
@created_at = Time.now | |
end | |
end | |
Tweet.class_eval | |
def add_smilely_face | |
status + " - :)" | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment