Sha256: 2a17f55576649649f0e1a91b438614f514a7ded480c26cbccb65f98f29e3003c

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

module Gleborator
  class BaseDecorator
    def initialize(object)
      @object = object
    end

    def self.wrap(object)
      if object.respond_to? :map

      else
        new(object)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gleborator-0.1.1.2 lib/gleborator/base_decorator.rb
gleborator-0.1.1.1 lib/gleborator/base_decorator.rb
gleborator-0.1.1 lib/gleborator/base_decorator.rb