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
Is there any precedent for such an alias? Are there other libraries that alias one of their methods to a module-level []? I have to admit it looks a little weird to my eyes.
There's another Ruby quirk that could be used instead: YAML.(), which Ruby treats as a call to YAML.call. The more you know! 🌠
Would it be possible to alias YAML[] onto YAML.load_file()?
E. g.:
Rationale:
Laziness (or "user efficiency" - anything to type less, just as require 'pp' is no longer necessary. :D
The text was updated successfully, but these errors were encountered: