Class: NoBrainer::Document::AtomicOps::PendingAtomicArray
- Inherits:
-
PendingAtomicContainer
- Object
- PendingAtomic
- PendingAtomicContainer
- NoBrainer::Document::AtomicOps::PendingAtomicArray
- Defined in:
- lib/no_brainer/document/atomic_ops.rb
Instance Attribute Summary
Attributes inherited from PendingAtomic
Instance Method Summary collapse
Methods inherited from PendingAtomicContainer
#&, #add, #delete, #difference, #intersection, #union, #|
Methods inherited from PendingAtomic
_new, #compile_rql_value, #default_value, #initialize, #initialize_copy, #inspect, #method_missing, #modify_source!, #to_s
Constructor Details
This class inherits a constructor from NoBrainer::Document::AtomicOps::PendingAtomic
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NoBrainer::Document::AtomicOps::PendingAtomic
Instance Method Details
#+(value) ⇒ Object
123 124 125 126 |
# File 'lib/no_brainer/document/atomic_ops.rb', line 123 def +(value) @ops << [:+, [value.to_a]] self end |
#-(value) ⇒ Object
128 129 130 131 |
# File 'lib/no_brainer/document/atomic_ops.rb', line 128 def -(value) @ops << [:difference, [value.to_a]] self end |
#<<(value) ⇒ Object
117 118 119 120 121 |
# File 'lib/no_brainer/document/atomic_ops.rb', line 117 def <<(value) @ops << [:append, [value]] modify_source! self end |