Class: Octo::Banner
- Inherits:
-
Object
- Object
- Octo::Banner
- Defined in:
- lib/octo/banner.rb
Overview
Banner provides logo for CLI startup.
Constant Summary collapse
- DEFAULT_CLI_LOGO =
Octo::BlockFont.render("octo")
- TAGLINE =
"[>] Your personal Assistant & Technical Co-founder"
Instance Method Summary collapse
- #full_banner ⇒ Object
- #highlight(text) ⇒ Object
-
#initialize ⇒ Banner
constructor
A new instance of Banner.
- #logo ⇒ Object
- #tagline ⇒ Object
Constructor Details
#initialize ⇒ Banner
Returns a new instance of Banner.
14 15 16 |
# File 'lib/octo/banner.rb', line 14 def initialize @pastel = Pastel.new end |
Instance Method Details
#full_banner ⇒ Object
30 31 32 |
# File 'lib/octo/banner.rb', line 30 def "#{logo}\n#{tagline}" end |
#highlight(text) ⇒ Object
26 27 28 |
# File 'lib/octo/banner.rb', line 26 def highlight(text) @pastel.bright_white(text) end |
#logo ⇒ Object
18 19 20 |
# File 'lib/octo/banner.rb', line 18 def logo @pastel.cyan(DEFAULT_CLI_LOGO) end |
#tagline ⇒ Object
22 23 24 |
# File 'lib/octo/banner.rb', line 22 def tagline @pastel.dim(TAGLINE) end |