Class: ProjectPrinter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ ProjectPrinter

Returns a new instance of ProjectPrinter.



365
366
367
368
# File 'lib/ft_42.rb', line 365

def initialize(project)
  @pastel  = Pastel.new
  @project = project
end

Instance Attribute Details

#pastelObject (readonly)

Returns the value of attribute pastel.



363
364
365
# File 'lib/ft_42.rb', line 363

def pastel
  @pastel
end

#projectObject (readonly)

Returns the value of attribute project.



363
364
365
# File 'lib/ft_42.rb', line 363

def project
  @project
end

Instance Method Details

#allObject



370
371
372
373
# File 'lib/ft_42.rb', line 370

def all
  name
  tier
end

#nameObject



375
376
377
# File 'lib/ft_42.rb', line 375

def name
  puts highlight(project.name)
end

#tierObject



379
380
381
# File 'lib/ft_42.rb', line 379

def tier
  puts "Difficulty Level: #{project.tier}"
end