class Sinject::DependencyInitializeException

Public Class Methods

new(expected_type) click to toggle source
# File lib/sinject/exceptions.rb, line 27
def initialize(expected_type)
  @expected_type = expected_type
end

Public Instance Methods

to_s() click to toggle source
# File lib/sinject/exceptions.rb, line 31
def to_s
  "The custom dependency initializer does not return an object of the expected type: '#{@expected_type}'"
end