Module: ArelExtensions::Attributes

Includes:
Comparators, DateDuration, Math, MathFunctions, NullFunctions, Predications, StringFunctions
Defined in:
lib/arel_extensions/attributes.rb

Instance Method Summary collapse

Methods included from Predications

#cast, #convert_to_node, #imatches, #in, #matches, #not_in, #when

Methods included from StringFunctions

#&, #[], #ai_collate, #ai_imatches, #ai_matches, #blank, #ci_collate, #collate, #concat, #downcase, #edit_distance, #group_concat, #idoes_not_match, #idoes_not_match_all, #idoes_not_match_any, #imatches, #imatches_all, #imatches_any, #length, #levenshtein_distance, #locate, #ltrim, #md5, #not_blank, #repeat, #replace, #rtrim, #smatches, #soundex, #substring, #trim, #upcase

Methods included from NullFunctions

#coalesce, #is_not_null, #is_null

Methods included from MathFunctions

#*, #/, #abs, #ceil, #floor, #format_number, #log10, #pow, #power, #round, #std, #sum, #variance

Methods included from DateDuration

#day, #format, #hour, #minute, #month, #second, #wday, #week, #year

Methods included from Comparators

#!~, #<, #<=, #=~, #>, #>=

Methods included from Math

#+, #-

Instance Method Details

#!=(other) ⇒ Object



23
24
25
# File 'lib/arel_extensions/attributes.rb', line 23

def !=(other)
  Arel::Nodes::NotEqual.new self, Arel::Nodes.build_quoted(other, self)
end

#==(other) ⇒ Object



19
20
21
# File 'lib/arel_extensions/attributes.rb', line 19

def ==(other)
  Arel::Nodes::Equality.new self, Arel::Nodes.build_quoted(other, self)
end