Class: Symbol
Overview
Symbol
Instance Method Summary collapse
-
#+@ ⇒ Object
—————————————————————————– +@ —————————————————————————–.
-
#-@ ⇒ Object
—————————————————————————– -@ —————————————————————————–.
Instance Method Details
#+@ ⇒ Object
+@
This allows you to put a plus sign in front of a field name in order to specify ascending sort order.
80 81 82 |
# File 'lib/mongoose.rb', line 80 def +@ ("+"+self.to_s).to_sym end |
#-@ ⇒ Object
-@
This allows you to put a minus sign in front of a field name in order to specify descending sort order.
70 71 72 |
# File 'lib/mongoose.rb', line 70 def -@ ("-"+self.to_s).to_sym end |