module Serially
Constants
- VERSION
Public Class Methods
included(receiver)
click to toggle source
Calls superclass method
# File lib/serially/serially.rb, line 3 def self.included(receiver) receiver.extend Serially::ClassMethods # remove any task_manager that might have been inherited - inclusion takes precedence Serially::TaskManager[receiver] = nil super end
Public Instance Methods
instance_id()
click to toggle source
override this to provide a custom way of fetching id of your class’ instance
# File lib/serially/serially.rb, line 77 def instance_id if self.respond_to?(:id) self.id else raise Serially::ArgumentError.new("Serially: default implementation of ::instance_id is not defined for plain Ruby class, please provide one") end end
serially()
click to toggle source
this is the entry point for all instance-level access to Serially
# File lib/serially/serially.rb, line 72 def serially @serially ||= Serially::InstanceBase.new(self) end