Skip to content

Instantly share code, notes, and snippets.

@dreoliv
dreoliv / gist:3048530
Created Jul 4, 2012
Indirect object creation
View gist:3048530

Inject factory method

Use for spawning multiple objects

class Foo

  attr_writer :bar_source


  private