You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# using inheritanceclassMyContainer < F::Container::DSLnamespace:hellodof(:world){->{"Hello, world!"}}endend# or using extend, which I am leaning toward mostclassMyContainerextendF::Container::DSLnamespace:hellodof(:world){->{"Hello, world!"}}endendMyContainer['hello.world'].()#=> "Hello, world!"classServiceincludeMyContainer.import(:hello)defcallf(:word)endend
I was thinking about making fun_ruby fully compatible with the Rails environment and its autoloading features based on zeitwerk and the only way do that smoothly is to allow creating containers as constants
The text was updated successfully, but these errors were encountered:
Currently, the only way to define a container is using the DSL:
Using a global container
Using a custom container
The goal is to make the following code work:
I was thinking about making fun_ruby fully compatible with the Rails environment and its autoloading features based on zeitwerk and the only way do that smoothly is to allow creating containers as constants
The text was updated successfully, but these errors were encountered: