Copland is an "Inversion of Control" (IoC, also called "Dependency Injection") container for Ruby, based heavily on the HiveMind container for Java. It supports both type-2 (setter) and type-3 (constructor) injection.
gem "copland", "~> 1.0.0"