Class: ThymePluginLabel
- Inherits:
-
Object
- Object
- ThymePluginLabel
- Defined in:
- lib/thyme_verbose/plugin_label.rb
Instance Method Summary collapse
- #after(seconds_left) ⇒ Object
-
#before ⇒ Object
Hooks.
-
#initialize(thyme, options = {}) ⇒ ThymePluginLabel
constructor
A new instance of ThymePluginLabel.
Constructor Details
#initialize(thyme, options = {}) ⇒ ThymePluginLabel
Returns a new instance of ThymePluginLabel.
3 4 5 6 7 8 9 |
# File 'lib/thyme_verbose/plugin_label.rb', line 3 def initialize(thyme, ={}) label = @label = '' thyme.option :l, 'label str', 'Label' do |str| label.replace str @run = true end end |
Instance Method Details
#after(seconds_left) ⇒ Object
17 18 19 |
# File 'lib/thyme_verbose/plugin_label.rb', line 17 def after(seconds_left) show_label end |
#before ⇒ Object
Hooks
13 14 15 |
# File 'lib/thyme_verbose/plugin_label.rb', line 13 def before show_label end |