Class: Symbol

Inherits:
Object show all
Defined in:
lib/gems/json_pure-1.1.3/lib/json/add/rails.rb,
lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb,
lib/gems/dm-aggregates-0.9.9/lib/dm-aggregates/support/symbol.rb

Instance Method Summary collapse

Instance Method Details

#ascObject



34
35
36
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 34

def asc
  DataMapper::Query::Operator.new(self, :asc)
end

#avgObject



14
15
16
# File 'lib/gems/dm-aggregates-0.9.9/lib/dm-aggregates/support/symbol.rb', line 14

def avg
  DataMapper::Query::Operator.new(self, :avg)
end

#countObject



2
3
4
# File 'lib/gems/dm-aggregates-0.9.9/lib/dm-aggregates/support/symbol.rb', line 2

def count
  DataMapper::Query::Operator.new(self, :count)
end

#descObject



38
39
40
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 38

def desc
  DataMapper::Query::Operator.new(self, :desc)
end

#eqlObject



22
23
24
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 22

def eql
  DataMapper::Query::Operator.new(self, :eql)
end

#gtObject



2
3
4
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 2

def gt
  DataMapper::Query::Operator.new(self, :gt)
end

#gteObject



6
7
8
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 6

def gte
  DataMapper::Query::Operator.new(self, :gte)
end

#inObject



30
31
32
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 30

def in
  DataMapper::Query::Operator.new(self, :in)
end

#likeObject



26
27
28
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 26

def like
  DataMapper::Query::Operator.new(self, :like)
end

#ltObject



10
11
12
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 10

def lt
  DataMapper::Query::Operator.new(self, :lt)
end

#lteObject



14
15
16
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 14

def lte
  DataMapper::Query::Operator.new(self, :lte)
end

#maxObject



10
11
12
# File 'lib/gems/dm-aggregates-0.9.9/lib/dm-aggregates/support/symbol.rb', line 10

def max
  DataMapper::Query::Operator.new(self, :max)
end

#minObject



6
7
8
# File 'lib/gems/dm-aggregates-0.9.9/lib/dm-aggregates/support/symbol.rb', line 6

def min
  DataMapper::Query::Operator.new(self, :min)
end

#notObject



18
19
20
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/support/symbol.rb', line 18

def not
  DataMapper::Query::Operator.new(self, :not)
end

#sumObject



18
19
20
# File 'lib/gems/dm-aggregates-0.9.9/lib/dm-aggregates/support/symbol.rb', line 18

def sum
  DataMapper::Query::Operator.new(self, :sum)
end

#to_json(*a) ⇒ Object



32
33
34
# File 'lib/gems/json_pure-1.1.3/lib/json/add/rails.rb', line 32

def to_json(*a)
  to_s.to_json(*a)
end