Module: WarningShot::Resolver Private

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

@@descendants =

This classvariable is part of a private API. You should avoid using this classvariable if possible, as it may be removed or be changed in the future.

[]

Class Method Summary collapse

Class Method Details

.descendants(filter_disabled = true) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



607
608
609
610
611
612
613
614
615
616
617
618
# File 'lib/warningshot/resolver.rb', line 607

def self.descendants(filter_disabled=true)
  #Filter out descendants that are disabled
  temp_descendants = []
  

  @@descendants.each{ |klass|
    temp_descendants.push(klass) unless filter_disabled && klass.disabled?
  }

  #Sort by order
  temp_descendants.sort_by{|desc| desc.order}
end