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.



328
329
330
331
# File 'lib/ft_42.rb', line 328

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

Instance Attribute Details

#pastelObject (readonly)

Returns the value of attribute pastel.



326
327
328
# File 'lib/ft_42.rb', line 326

def pastel
  @pastel
end

#projectObject (readonly)

Returns the value of attribute project.



326
327
328
# File 'lib/ft_42.rb', line 326

def project
  @project
end

Instance Method Details

#allObject



333
334
335
336
# File 'lib/ft_42.rb', line 333

def all
  name
  tier
end

#nameObject



338
339
340
# File 'lib/ft_42.rb', line 338

def name
  puts highlight(project.name)
end

#tierObject



342
343
344
# File 'lib/ft_42.rb', line 342

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