Sha256: 138835cad5f03f6cfbeb6ae50074b21cf4a2c7a7da9df0e7bd87228f5cdff525

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

module Burgundy
  class Item < SimpleDelegator
    attr_reader :item

    def self.wrap(collection)
      Collection.new(collection, self)
    end

    def self.map(collection)
      warn 'Burgundy::Item.map is deprecated; use Burgundy::Item.wrap instead.'
      wrap(collection)
    end

    def initialize(item)
      @item = item
      __setobj__(item)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
burgundy-0.0.4 lib/burgundy/item.rb
burgundy-0.0.3 lib/burgundy/item.rb