文件名称:wireless:轻量级的声明式依赖提供程序
文件大小:22KB
文件格式:ZIP
更新时间:2024-04-10 20:46:52
dependency-injection declarative zero-dependency dependencies di
无线的 姓名 无线-轻量级的声明式依赖提供程序 安装 gem "wireless" 概要 require "wireless" WL = Wireless . new do count = 0 # factory: return a new value every time on ( :foo ) do [ :foo , count += 1 ] end # singleton: return the cached value once ( :bar ) do [ :bar , count += 1 ] end # depend on other dependencies on ( :baz ) do | wl | [ :baz , wl [ :foo ] , wl [ :bar ] ] end end # factory W
【文件预览】:
wireless-master
----.github()
--------workflows()
----lib()
--------wireless()
--------wireless.rb(2KB)
----Gemfile(157B)
----Rakefile(429B)
----test()
--------test_helper.rb(2KB)
--------cycle.rb(1KB)
--------mixin.rb(6KB)
--------core.rb(3KB)
--------exceptions.rb(1KB)
----LICENSE.md(9KB)
----README.md(4KB)
----resources()
--------rubocop()
----wireless.gemspec(1KB)
----Gemfile.lock(1KB)
----.editorconfig(387B)
----.gitignore(1KB)
----CHANGELOG.md(258B)