Closed JuanVqz closed 4 months ago
Thanks. However, this inflector is meant to be used internally by the loader, or subclassed.
If used internally by the loader, it always gets two arguments. There is no use case for an optional second argument.
If you subclass, you can make the second argument optional if you plan to use the inflector directly.
Which is your use case for accessing the inflector directly?
Thanks. However, this inflector is meant to be used internally by the loader, or subclassed.
If used internally by the loader, it always gets two arguments. There is no use case for an optional second argument.
If you subclass, you can make the second argument optional if you plan to use the inflector directly.
Which is your use case for accessing the inflector directly?
I don't really have a use case, I was playingaround with the Zeitwerk code and thought it could have a default value, feel free to close the PR. 👍
OK, thanks!
I noticed that the second argument for the
camelize
method was required, even when not using an absolute path. Therefore, I suggest making the second parameter of camelize completely optional.Before
After
Please, let me know if I have to add a record in the CHANGELOG
BTW, I found rbs project interesting
Thanks for the gem!