Created
April 28, 2015 13:43
-
-
Save iandonovanhock/ebd90b3f9c7bf677c82e to your computer and use it in GitHub Desktop.
heeelp
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 School | |
@@school_hash = {} | |
def initialize(school) | |
@school = school | |
@@school_hash[:school] = school | |
end | |
def self.all | |
@@school_hash | |
end | |
end | |
class School | |
@@school_count = 0 | |
def initialize(school, location, ranking) | |
@school = school | |
@@school_count += 1 | |
end | |
def self.count | |
@@school_count | |
end | |
end | |
class School | |
@@school_count = 0 | |
def initialize(school, location, ranking) | |
@school = school | |
@@school_count += 1 | |
end | |
def self.count | |
@@school_count | |
end | |
def self.reset_all = (0) | |
@@school_count = 0 | |
end | |
end | |
def initialize(school) | |
@school = School | |
end | |
end | |
class School | |
def initialize(name) | |
@name = name | |
end | |
end | |
class School | |
def initialize(location) | |
@location = location | |
end | |
end | |
class School | |
def initialize(ranking) | |
@ranking = ranking | |
end | |
end | |
class School | |
def initialize(name) | |
attr_reader :name | |
end | |
end | |
class School | |
def initialize(location) | |
attr_reader = location | |
end | |
end | |
class School | |
@@students_array = [] | |
def initialize(students) | |
attr_reader :students | |
@@student_array | |
end | |
end | |
class School | |
def initialize(ranking) | |
@ranking = ranking | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment