Skip to content

Instantly share code, notes, and snippets.

@mindplace
Last active March 29, 2016 16:50
Show Gist options
  • Save mindplace/64a5705fd064d52049e7fb5887abe9fb to your computer and use it in GitHub Desktop.
Save mindplace/64a5705fd064d52049e7fb5887abe9fb to your computer and use it in GitHub Desktop.
class LocalCohort < GlobalCohort
attr_reader :city, :students, :global_cohort
def initialize(city, global_cohort)
@city, @global_cohort = city, global_cohort
@students = []
end
def global_cohort_name
global_cohort.name
end
def add_student(student)
@students << student
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment