class Rsrb::Internal::Types::Routine
A self-executing object.
Public Class Methods
new(assets)
click to toggle source
Called when a new Routine
is created.
# File lib/rsrb/internal/types/routine.rb, line 11 def initialize(assets) init_loggers @assets = assets execute successful rescue StandardError => e err! 'An error occurred while executing the routine!', e unsuccessful end
Public Instance Methods
execute()
click to toggle source
The execution function for this routine
# File lib/rsrb/internal/types/routine.rb, line 23 def execute; end
successful()
click to toggle source
The callback function for this routine
# File lib/rsrb/internal/types/routine.rb, line 27 def successful; end
unsuccessful()
click to toggle source
The errback function for this routine.
# File lib/rsrb/internal/types/routine.rb, line 31 def unsuccessful; end