Sha256: 4f7c758e42b8bbe807b753426e8e12282ec66eaed532a9c91ba792b49cbb544b

Contents?: true

Size: 146 Bytes

Versions: 3

Compression:

Stored size: 146 Bytes

Contents

class Dependor::EvaluatingInjector
  def initialize(binding)
    @binding = binding
  end

  def get(name)
    @binding.eval(name.to_s)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dependor-1.0.1 lib/dependor/evaluating_injector.rb
dependor-1.0.0 lib/dependor/evaluating_injector.rb
dependor-0.0.6 lib/dependor/evaluating_injector.rb