We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba7fd11 + 479c7db commit 0473c46Copy full SHA for 0473c46
1 file changed
README.md
@@ -36,6 +36,21 @@ resolver = ConstantResolver.new(
36
)
37
```
38
39
+### Default namespaces
40
+
41
+If any load paths have a default namespace other than `Object`, these can be specified in a hash:
42
43
+```ruby
44
+resolver = ConstantResolver.new(
45
+ root_path: "/app",
46
+ load_paths: {
47
+ "/app/models" => "::Object",
48
+ "/app/services" => "::Object",
49
+ "/app/internal" => "::Business",
50
+ }
51
+)
52
+```
53
54
### Resolve a constant
55
56
Resolve a constant from the contents of your load paths:
0 commit comments