Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/ar_pg_array/querying.rb

Direct Known Subclasses

PGArrays::PgArray

Instance Method Summary collapse

Instance Method Details

#pg(type = nil) ⇒ Object



71
72
73
# File 'lib/ar_pg_array/querying.rb', line 71

def pg(type=nil)
  ::PGArrays::PgArray.new(self, type)
end

#search_all(type = nil) ⇒ Object



79
80
81
# File 'lib/ar_pg_array/querying.rb', line 79

def search_all(type=nil)
  ::PGArrays::PgAll.new(self, type)
end

#search_any(type = nil) ⇒ Object



75
76
77
# File 'lib/ar_pg_array/querying.rb', line 75

def search_any(type=nil)
  ::PGArrays::PgAny.new(self, type)
end

#search_subarray(type = nil) ⇒ Object



83
84
85
# File 'lib/ar_pg_array/querying.rb', line 83

def search_subarray(type=nil)
  ::PGArrays::PgIncludes.new(self, type)
end