Sha256: 3712a256383f3c21ba4c526245e89712127f2829b2b22b1a220013a90efdacc9

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

# frozen_string_literal: true

module BCDD::Contract
  class Core::Proxy
    def self.[](object)
      new(object)
    end

    def self.to_proc
      ->(object) { new(object) }
    end

    attr_reader :object

    def initialize(object)
      @object = object
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcdd-contract-0.1.0 lib/bcdd/contract/core/proxy.rb