vendor/bundle/ruby/1.8/gems/emissary-1.3.18/lib/emissary/identity.rb
# Generates list of possible identities after removing registered exclusions
# and then ordering them highest priority (> 0) to lowest priority (== 0)
#
Generates list of possible identities after removing registered exclusions
and then ordering them highest priority (> 0) to lowest priority (== 0)
Generates list of possible identities after removing registered exclusions and then ordering them highest priority ( > 0 ) to lowest priority ( == 0 )
def identities
      @@identities ||= begin
        self.class.registry.reverse.flatten.reject do |id|
          id.nil? || self.class.exclusions.include?(id)
        end.inject([]) do |a,id|
          a << [ id.to_s, ::Emissary.klass_const("Emissary::Identity::#{id.to_s.capitalize}").new ]; a
        end
      end
    end
def identities @@identities ||= begin self . class . registry . reverse . flatten . reject do | id | id . nil? || self . class . exclusions . include? ( id ) end . inject ( [ ] ) do | a , id | a << [ id . to_s , :: Emissary . klass_const ( "Emissary::Identity::#{id.to_s.capitalize}" ) . new ] ; a end end end
Generates list of possible identities after removing registered exclusions
and then ordering them highest priority (> 0) to lowest priority (== 0)
Generates list of possible identities after removing registered exclusions and then ordering them highest priority ( > 0 ) to lowest priority ( == 0 )