Module: Cul::Omniauth::Abilities::Comparisons
- Defined in:
- app/models/concerns/cul/omniauth/abilities.rb
Class Method Summary collapse
Class Method Details
.eql?(context, value) ⇒ Boolean
70 71 72 |
# File 'app/models/concerns/cul/omniauth/abilities.rb', line 70 def self.eql?(context, value) context.eql? value end |
.in?(context, value) ⇒ Boolean
73 74 75 |
# File 'app/models/concerns/cul/omniauth/abilities.rb', line 73 def self.in?(context, value) (Array(value) & Array(context)).size > 0 end |
.include?(context, value) ⇒ Boolean
67 68 69 |
# File 'app/models/concerns/cul/omniauth/abilities.rb', line 67 def self.include?(context, value) context.include? value end |