Sha256: 10ff9769609d209b1935988bfd2b092641185abaef82207a3ba112fe0b22791d

Contents?: true

Size: 315 Bytes

Versions: 54

Compression:

Stored size: 315 Bytes

Contents

module Locomotive::Steam
  module Adapters
    module MongoDB

      class Dataset < SimpleDelegator

        def initialize(records = [], &block)
          @records = block_given? ? yield : records
          super(@records)
        end

        def all
          @records
        end

      end

    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
locomotivecms_steam-1.4.0.rc1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.4.0.pre.rc.1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.3.0 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.3.0.rc2 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.1.2 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.2.1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.3.0.rc1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.2.0 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.2.0.rc3 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.2.0.rc2 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.2.0.rc1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.2.0.beta1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.1.1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.1.0 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.1.0.rc3 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.1.0.rc2 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.1.0.rc1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.0.1 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.0.0 lib/locomotive/steam/adapters/mongodb/dataset.rb
locomotivecms_steam-1.0.0.rc10 lib/locomotive/steam/adapters/mongodb/dataset.rb