struct

BSONCr::Document

Inherits Enumerable < BSONCr::ADocument < Struct < Value < Object

Instance methods

each

Must yield this collection's elements to the block.

Source
to_h

Creates a Hash out of an Enumerable where each element is a 2 element structure (for instance a Tuple or an Array).

[[:a, :b], [:c, :d]].to_h        # => {:a => :b, :c => :d}
Tuple.new({:a, 1}, {:c, 2}).to_h # => {:a => 1, :c => 2}
Source