Class: Ohm::Model::Set
- Inherits:
-
Collection
- Object
- Collection
- Ohm::Model::Set
- Defined in:
- lib/ohm.rb
Direct Known Subclasses
Constant Summary
- Raw =
Ohm::Set
Instance Method Summary (collapse)
-
- (Object) except(hash)
Returns the difference between the receiver and the passed sets.
-
- (Object) find(hash)
Returns an intersection with the sets generated from the passed hash.
- - (Object) inspect
Methods inherited from Collection
#<<, #[], #all, #clear, #concat, #delete, #each, #empty?, #first, #include?, #initialize, #key, #replace, #size, #sort, #sort_by
Constructor Details
This class inherits a constructor from Ohm::Model::Collection
Instance Method Details
- (Object) except(hash)
Returns the difference between the receiver and the passed sets.
221 222 223 |
# File 'lib/ohm.rb', line 221 def except(hash) apply(:sdiffstore, hash, :-) end |
- (Object) find(hash)
Returns an intersection with the sets generated from the passed hash.
213 214 215 |
# File 'lib/ohm.rb', line 213 def find(hash) apply(:sinterstore, hash, :+) end |
- (Object) inspect
201 202 203 |
# File 'lib/ohm.rb', line 201 def inspect "#<Set (#{model}): #{all.inspect}>" end |