Skip to content

Instantly share code, notes, and snippets.

View holsee's full-sized avatar
💭
elixir'n and rust'n all the things

Steven Holdsworth holsee

💭
elixir'n and rust'n all the things
View GitHub Profile
@andypike
andypike / classes.rb
Last active December 15, 2015 22:09
My first experiment with a simple IoC container in Ruby. To run this sample do this: $ ruby ioc.rb
# defining various components of the system
# notice the classes know nothing about the container
# as they require the dependencies to operate, they should be passed into the constructor
class Nails
def to_s
"nails"
end
end
class Glue