Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mongo_delegate/composite_cursor.rb
Instance Method Summary collapse
Instance Method Details
#num_val ⇒ Object
16 17 18 19 |
# File 'lib/mongo_delegate/composite_cursor.rb', line 16 def num_val return 0 if length == 0 self[-1] + 500*self[0..-2].num_val end |
#opposite_word ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/mongo_delegate/composite_cursor.rb', line 23 def opposite_word res = " " * length for i in (0...length) res[i] = 255-self[i] end res end |
#sortflip ⇒ Object
20 21 22 |
# File 'lib/mongo_delegate/composite_cursor.rb', line 20 def sortflip opposite_word end |