# Guice for the Rubyist

DevFeed: [Guice for the Rubyist](<https://devfeed.tech/articles/guice-for-the-rubyist-15669.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/guice-for-the-rubyist>)

Author: Square Engineering

Published: 2013-06-26T16:03:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Java](<https://devfeed.tech/topics/java.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [integration](<https://devfeed.tech/tags/integration.md>), [ruby](<https://devfeed.tech/tags/ruby.md>)

## AI overview

This article explains how Square integrated Guice-backed dependency injection into Ruby applications through a small API that provides field injection and native-feeling Ruby interfaces. It also shows code that exposes underlying Java objects and describes running the example with JRuby.

## Source excerpt

A little about our infrastructure and some code to showcase integration with Guice for Ruby.