Class: Belajar::Views::TopBar
- Inherits:
-
Object
- Object
- Belajar::Views::TopBar
- Includes:
- Curses
- Defined in:
- lib/belajar/views/top_bar.rb
Constant Summary collapse
- HEIGHT =
4
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#panel ⇒ Object
readonly
Returns the value of attribute panel.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(window, text = '') ⇒ TopBar
constructor
A new instance of TopBar.
- #show ⇒ Object
Constructor Details
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
8 9 10 |
# File 'lib/belajar/views/top_bar.rb', line 8 def height @height end |
#panel ⇒ Object (readonly)
Returns the value of attribute panel.
8 9 10 |
# File 'lib/belajar/views/top_bar.rb', line 8 def panel @panel end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
8 9 10 |
# File 'lib/belajar/views/top_bar.rb', line 8 def width @width end |
Instance Method Details
#show ⇒ Object
16 17 18 |
# File 'lib/belajar/views/top_bar.rb', line 16 def show @panel.refresh end |