Class: ProjectUsersPrinter
- Inherits:
-
Object
- Object
- ProjectUsersPrinter
- Defined in:
- lib/ft_42.rb
Instance Attribute Summary collapse
-
#pastel ⇒ Object
readonly
Returns the value of attribute pastel.
-
#project_users ⇒ Object
readonly
Returns the value of attribute project_users.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(project_users) ⇒ ProjectUsersPrinter
constructor
A new instance of ProjectUsersPrinter.
- #usernames ⇒ Object
Constructor Details
#initialize(project_users) ⇒ ProjectUsersPrinter
Returns a new instance of ProjectUsersPrinter.
393 394 395 396 |
# File 'lib/ft_42.rb', line 393 def initialize(project_users) @pastel = Pastel.new @project_users = project_users end |
Instance Attribute Details
#pastel ⇒ Object (readonly)
Returns the value of attribute pastel.
391 392 393 |
# File 'lib/ft_42.rb', line 391 def pastel @pastel end |
#project_users ⇒ Object (readonly)
Returns the value of attribute project_users.
391 392 393 |
# File 'lib/ft_42.rb', line 391 def project_users @project_users end |
Instance Method Details
#all ⇒ Object
398 399 400 |
# File 'lib/ft_42.rb', line 398 def all usernames end |
#usernames ⇒ Object
402 403 404 405 406 407 |
# File 'lib/ft_42.rb', line 402 def usernames puts "Currenly working on project:" project_users.in_progress.each_with_index do |login, i| puts "#{i + 1}. #{login}" end end |