class AttrBitwise::ComparableSymbolsArray

Custom class that allow to use shortcut :

my_column == :banana

instead of

my_column == [:banana]

Public Instance Methods

==(other_object) click to toggle source
Calls superclass method
# File lib/attr_bitwise.rb, line 44
def ==(other_object)
  if other_object.is_a?(Symbol)
    self.size == 1 && self.first == other_object
  else
    super(other_object)
  end
end