Sha256: 0e279b04596ab586745bf82cd92676ffc74938ae0f532235883dbbfe19975b08

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

module SimpleInjector
  # Class to handle instances to are injectable
  class Injectable
    attr_accessor :name, :callback

    def initialize(name, callback)
      @name = name
      @callback = callback
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_injector-0.0.2 lib/simple_injector/injectable.rb