Class: Auth::TargetList

Inherits:
Array
  • Object
show all
Defined in:
lib/auth/target_list.rb

Instance Method Summary collapse

Instance Method Details

#find(which) ⇒ Object



2
3
4
# File 'lib/auth/target_list.rb', line 2

def find(which)
  select { |o| o.matches?(which) }.shift
end