Sha256: 812c7a424d76bc592efeb5083ffa562dc8c0d72444e90f44f7c11bc3fcaaf537
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
module DIErrorDemo class WithDI include Flows::Plugin::DependencyInjector dependency :req_str_dep, required: true, type: String def call 'Hi!' end end class WithEmptyDI include Flows::Plugin::DependencyInjector end class << self def missing_dependency WithDI.new end def unexpected_dependency WithDI.new(dependencies: { req_str_dep: 'AAA', my_extra_dependency: 'III' }) end def invalid_type_dependency WithDI.new(dependencies: { req_str_dep: :AAA }) end def missing_default WithEmptyDI.dependency :my_opt_dep end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flows-0.6.0 | bin/errors_cli/di_error_demo.rb |
flows-0.5.1 | bin/errors_cli/di_error_demo.rb |
flows-0.5.0 | bin/errors_cli/di_error_demo.rb |
flows-0.4.0 | bin/errors_cli/di_error_demo.rb |