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
Initializes replicable objects with positional and named arguments
- Positional and named arguments may be passed when initializing
"replicable" classes
- When multiple classes are registered under the same key, all
classes receive the same arguments
Co-authored-by: Fito von Zastrow <adolfovon@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Replicator is ready to use in it's current state. The interfaces are unlikey to
42
42
- [x] Concrete, "replicable" classes can self register under one or more keys by calling `replicates :symbol`
43
43
- [x] Multiple concrete, "replicable" classes can self register under the same key by calling `replicates :symbol`
44
44
- [x] Registered, "replicable" classes can be instantiated using the abstract parent's `.replicate(:symbol)` method
45
-
- [] Positional and named arguments may be passed when initializing "replicable" classes
45
+
- [x] Positional and named arguments may be passed when initializing "replicable" classes
46
46
- [ ] A "replicable" class may register as the `default_replica` for an extended abstract parent class, and will be instantiated when an unknown key is requested (good for the null object pattern)
47
47
- [ ] A "replicable" class may register as `replicates_all` in which case, it is always instantiated and returned in addition to the classes that match a requested key
0 commit comments