Class: WorkTogether::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/work_together.rb

Class Method Summary collapse

Class Method Details

.allObject



95
96
97
# File 'lib/work_together.rb', line 95

def self.all
  Table.all
end

.display_groupsObject



99
100
101
102
103
104
105
106
107
# File 'lib/work_together.rb', line 99

def self.display_groups
  Table.all.each_with_index do |table, i|
    puts "Group #{i + 1}:".colorize(:blue)
    table.students.each do |student|
      puts student.name.colorize(:light_blue)
    end
    puts "-------------------".colorize(:blue)
  end
end