Class: ProgressBar::Components::Title
- Inherits:
-
Object
- Object
- ProgressBar::Components::Title
- Defined in:
- lib/ruby-progressbar/components/title.rb
Constant Summary collapse
- DEFAULT_TITLE =
'Progress'
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Title
constructor
A new instance of Title.
Constructor Details
#initialize(options = {}) ⇒ Title
Returns a new instance of Title.
8 9 10 |
# File 'lib/ruby-progressbar/components/title.rb', line 8 def initialize( = {}) self.title = [:title] || DEFAULT_TITLE end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/ruby-progressbar/components/title.rb', line 6 def title @title end |