Method: Mongo::Options::Redacted#select
- Defined in:
- lib/mongo/options/redacted.rb
#select {|The| ... } ⇒ Options::Redacted
Returns a new options object consisting of pairs for which the block returns true.
118 119 120 121 |
# File 'lib/mongo/options/redacted.rb', line 118 def select(&block) = dup .select!(&block) || end |