Module: Mongo::Collection::View::Immutable
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/mongo/collection/view/immutable.rb |
Overview
Defines behavior around views being configurable and immutable.
Instance Attribute Summary
- #options ⇒ Hash readonly
Instance Method Summary
- #configure(field, value) private
Instance Attribute Details
#options ⇒ Hash
(readonly)
# File 'lib/mongo/collection/view/immutable.rb', line 28
attr_reader :
Instance Method Details
#configure(field, value) (private)
# File 'lib/mongo/collection/view/immutable.rb', line 32
def configure(field, value) return [field] if value.nil? new( .merge(field => value)) end