module Mongo::Collection::View::Immutable
Defines behavior around views being configurable and immutable.
@since 2.0.0
Attributes
options[R]
@return [ Hash ] options The additional query options.
Private Instance Methods
configure(field, value)
click to toggle source
# File lib/mongo/collection/view/immutable.rb, line 29 def configure(field, value) return options[field] if value.nil? new(options.merge(field => value)) end