Skip to content

Instantly share code, notes, and snippets.

@mecampbellsoup
Created September 20, 2013 19:34
Show Gist options
  • Save mecampbellsoup/6642684 to your computer and use it in GitHub Desktop.
Save mecampbellsoup/6642684 to your computer and use it in GitHub Desktop.
Tricky initialize...
require 'pry'
class School
def initialize(name, location, ranking, students, instructors)
@name=self[:name]=name
@location=self[:location]=location
@ranking=self[:ranking]=ranking
@students=self[:students]=students
@instructors=self[:instructors]=instructors
#SCHOOLS.push(self)
end
end
ap School.new("Roosevelt", "NYC", 2, [{name: "Matt", grade: "A"}, {name: "Sean", grade: "C"}], [{name: "Will", subject: "Ruby"}, {name: "Joe", subject: "iOS"}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment