Class: ProjectPrinter
- Inherits:
-
Object
- Object
- ProjectPrinter
- Defined in:
- lib/ft_42.rb
Instance Attribute Summary collapse
-
#pastel ⇒ Object
readonly
Returns the value of attribute pastel.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(project) ⇒ ProjectPrinter
constructor
A new instance of ProjectPrinter.
- #name ⇒ Object
- #tier ⇒ Object
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
#pastel ⇒ Object (readonly)
Returns the value of attribute pastel.
363 364 365 |
# File 'lib/ft_42.rb', line 363 def pastel @pastel end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
363 364 365 |
# File 'lib/ft_42.rb', line 363 def project @project end |
Instance Method Details
#all ⇒ Object
370 371 372 373 |
# File 'lib/ft_42.rb', line 370 def all name tier end |
#name ⇒ Object
375 376 377 |
# File 'lib/ft_42.rb', line 375 def name puts highlight(project.name) end |
#tier ⇒ Object
379 380 381 |
# File 'lib/ft_42.rb', line 379 def tier puts "Difficulty Level: #{project.tier}" end |