Class: Nazar::HeadersFormatter

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

Instance Method Summary collapse

Constructor Details

#initialize(headers) ⇒ HeadersFormatter

Returns a new instance of HeadersFormatter.



5
6
7
# File 'lib/nazar/headers_formatter.rb', line 5

def initialize(headers)
  @headers = headers
end

Instance Method Details

#formatObject



9
10
11
# File 'lib/nazar/headers_formatter.rb', line 9

def format
  headers.map { |header| pastel.bold(header) }
end