Sha256: a0a23ecf8d5fbf9765573bd83ca3263ea1af82bf5c968da535109f0bdf4287ee
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
module ActiveJob module Cron module Trackable def subclasses(deep = false) @subclasses ||= [] if deep @subclasses.inject([]) do |all, subclass| (all << subclass) + subclass.subclasses(true) end else @subclasses end end def inherited(klass) super subclasses << klass end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_job-cron-0.1.0 | lib/active_job/cron/trackable.rb |