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.
328 329 330 331 |
# File 'lib/ft_42.rb', line 328 def initialize(project) @pastel = Pastel.new @project = project end |
Instance Attribute Details
#pastel ⇒ Object (readonly)
Returns the value of attribute pastel.
326 327 328 |
# File 'lib/ft_42.rb', line 326 def pastel @pastel end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
326 327 328 |
# File 'lib/ft_42.rb', line 326 def project @project end |
Instance Method Details
#all ⇒ Object
333 334 335 336 |
# File 'lib/ft_42.rb', line 333 def all name tier end |
#name ⇒ Object
338 339 340 |
# File 'lib/ft_42.rb', line 338 def name puts highlight(project.name) end |
#tier ⇒ Object
342 343 344 |
# File 'lib/ft_42.rb', line 342 def tier puts "Difficulty Level: #{project.tier}" end |