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