Class: GoogleDataSource::DataSource::Sql::Expr
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.binary(*ops) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/google_data_source/sql/models.rb', line 11
def self.binary(*ops)
ops.each do |op|
define_method(op) do |other|
BinaryExpr.new(self, op, other)
end
end
end
|
.compare(*ops) ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/google_data_source/sql/models.rb', line 22
def self.compare(*ops)
ops.each do |op|
define_method(op) do |other|
ComparePredicate.new(self, op, other)
end
end
end
|
Instance Method Details
#-@ ⇒ Object
19
20
21
|
# File 'lib/google_data_source/sql/models.rb', line 19
def -@
PrefixExpr.new(:-, self)
end
|