Module: NetworkExecutive::Scheduling::ClassMethods
- Defined in:
- lib/network_executive/scheduling.rb
Instance Method Summary collapse
Instance Method Details
#schedule(program = nil, options = {}, &block) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/network_executive/scheduling.rb', line 26 def schedule( program = nil, = {}, &block ) @schedule ||= ChannelSchedule.new if block_given? @schedule.add program, , &block else @schedule end end |