Class: Standby::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/standby/base.rb

Instance Method Summary collapse

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