lib/presidents/cli.rb
#gives Presidents module access to the methods of the CLI class
gives Presidents module access to the methods of the CLI class
gives Presidents module access to the methods of the CLI class
def print_presidents
   Presidents::President.all.each_with_index do |president, index| 
     puts "{index + 1}. {president.name}" 
   end
 end
def print_presidents Presidents :: President . all . each_with_index do | president , index | puts "#{index + 1}. #{president.name}" end end
gives Presidents module access to the methods of the CLI class
gives Presidents module access to the methods of the CLI class
#