Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.51 kb
# XXX this is terrible, yes i know!
class Symbol
{ :< => :$lt,
:<= => :$lte,
:> => :$gt,
:>= => :$gte }.each do |func, key|
class_eval %[
def #{func} num
{ self => { :#{key} => num }}
end
]
end
def in values
{ self => { :$in => values }}
end
def asc
{ :orderby => { self => 1 } }
end
def desc
{ :orderby => { self => -1 } }
end
end
Jump to Line
Something went wrong with that request. Please try again.