Class: Nazar::HeadersFormatter
- Inherits:
-
Object
- Object
- Nazar::HeadersFormatter
- Defined in:
- lib/nazar/headers_formatter.rb
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(headers) ⇒ HeadersFormatter
constructor
A new instance of HeadersFormatter.
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
#format ⇒ Object
9 10 11 |
# File 'lib/nazar/headers_formatter.rb', line 9 def format headers.map { |header| pastel.bold(header) } end |