class ProjectPrinter

Attributes

pastel[R]
project[R]

Public Class Methods

new(project) click to toggle source
# File lib/ft_42.rb, line 365
def initialize(project)
  @pastel  = Pastel.new
  @project = project
end

Public Instance Methods

all() click to toggle source
# File lib/ft_42.rb, line 370
def all
  name
  tier
end
name() click to toggle source
# File lib/ft_42.rb, line 375
def name
  puts highlight(project.name)
end
tier() click to toggle source
# File lib/ft_42.rb, line 379
def tier
  puts "Difficulty Level: #{project.tier}"
end

Private Instance Methods

highlight(string) click to toggle source
# File lib/ft_42.rb, line 385
def highlight(string)
  pastel.bright_green.bold(string)
end