Registry / utility / deject

deject

JSON →
library0.2.3rbrubygemsunverified

Provides a super simple API for dependency injection in Ruby.

gem install deject
INSTALL
IMPORT
SIG · DEJECT
D
deject
utilityrubyv0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Deject
require 'deject'

Define a dependency with a default and use it.

require 'deject' class MyClass include Deject dependency(:logger) { Logger.new(STDOUT) } def run logger.info 'Running' end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
deject — gem install deject · libregistry