Class: Standby::Base
- Inherits:
-
Object
- Object
- Standby::Base
- Defined in:
- lib/standby/base.rb
Instance Method Summary collapse
-
#initialize(target) ⇒ Base
constructor
A new instance of Base.
- #run(&block) ⇒ Object
Constructor Details
#initialize(target) ⇒ Base
Returns a new instance of Base.
3 4 5 |
# File 'lib/standby/base.rb', line 3 def initialize(target) @target = decide_with(target) end |
Instance Method Details
#run(&block) ⇒ Object
7 8 9 |
# File 'lib/standby/base.rb', line 7 def run(&block) run_on @target, &block end |