These are chat archives for dry-rb/chat

28th
May 2017
Stergio
@stergiom
May 28 2017 10:05
class SomeClass
  include Inject[:some_dep]

  def initialize(diff_dep:)
    # do stuff with diff_dep and some_dep
  end
end
what should initialize look like to accept kwargs and auto_inject dependencies?
Nikita Shilnikov
@flash-gordon
May 28 2017 10:19
@stergiom
  def initialize(diff_dep:, **other_deps)
    super(other_deps)
    # use diff_dep/some_dep
  end
Stergio
@stergiom
May 28 2017 10:34
neat! :beers: Nikita