class DbSucker::Application::Tie
Public Class Methods
descendants()
click to toggle source
# File lib/db_sucker/application/tie.rb, line 4 def self.descendants @descendants ||= [] end
hook!(app)
click to toggle source
# File lib/db_sucker/application/tie.rb, line 20 def self.hook! app raise NotImplementedError, "AppTies must implement class method `.hook!(app)'!" end
hook_all!(app)
click to toggle source
# File lib/db_sucker/application/tie.rb, line 13 def self.hook_all! app descendants.uniq.each do |klass| app.debug "[AppTie] Loading apptie `#{klass.name}'" klass.hook!(app) end end
inherited(descendant)
click to toggle source
Descendant tracking for inherited classes.
# File lib/db_sucker/application/tie.rb, line 9 def self.inherited(descendant) descendants << descendant end