Class: ThymePluginLabel

Inherits:
Object
  • Object
show all
Defined in:
lib/thyme_verbose/plugin_label.rb

Instance Method Summary collapse

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, options={})
  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