Skip to content

Aliases for every method #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Aliases for every method #26

wants to merge 2 commits into from

Conversation

Gimbardo
Copy link

Basically, I hated how I had to write Base64.encode64, it felt so redundant, so I created aliases for every method of this library, to allow for a more simple "Base64.encode"

I also added tests for what I wrote, and "gemspec" to Gemfile to allow bin/console to load the gem you are working on, and not the one installed in the system

@Gimbardo
Copy link
Author

Gimbardo commented Jun 9, 2025

is this valid? @hsbt

Copy link
Member

@mame mame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm if this patch works well for rdoc? I am not sure if rdoc can handle these aliases as class methods but not instance methods.

@Gimbardo
Copy link
Author

@mame created the requested tests
for rdoc, it looks like this inside the docs:
image.
and like this for the code
image

it looks like the expected behaviour to me

@Gimbardo
Copy link
Author

@mame is anything missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants