Created
May 6, 2015 15:43
-
-
Save RobAWilkinson/f3900ef8ce3c40456df8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Bird | |
attr_reader :name | |
@@count = 0 | |
def initialize(name) | |
@name = name | |
@@count += 1 | |
end | |
def self.count | |
@@count | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment