Class: Barr::Blocks::Whoami
- Inherits:
-
Barr::Block
- Object
- Barr::Block
- Barr::Blocks::Whoami
- Defined in:
- lib/barr/blocks/whoami.rb
Instance Attribute Summary
Attributes inherited from Barr::Block
#align, #bgcolor, #fgcolor, #icon, #interval, #output
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Whoami
constructor
A new instance of Whoami.
- #update! ⇒ Object
Methods inherited from Barr::Block
#<<, #colors, #destroy, #destroy!, #draw, #reassign_deprecated_option, #update
Constructor Details
#initialize(opts = {}) ⇒ Whoami
7 8 9 |
# File 'lib/barr/blocks/whoami.rb', line 7 def initialize(opts = {}) super end |
Instance Method Details
#update! ⇒ Object
11 12 13 |
# File 'lib/barr/blocks/whoami.rb', line 11 def update! @output = sys_cmd end |