Skip to content
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

Implement String#getbyte #2141

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Implement String#getbyte #2141

merged 1 commit into from
Jan 5, 2021

Conversation

ggrossetie
Copy link
Member

Based on #2140

@ggrossetie ggrossetie marked this pull request as ready for review December 13, 2020 11:33
opal/corelib/string/encoding.rb Outdated Show resolved Hide resolved
opal/corelib/string/encoding.rb Show resolved Hide resolved
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

Great! One last thing: can you please also remove the definition of getbyte on the base encoding class?

def getbyte(*)
raise NotImplementedError
end

@ggrossetie
Copy link
Member Author

@elia Done! I've also added a changelog 😉

Also make the implementation of Stirng#bytes rely on #getbyte instead
of forwarding to the encoding class which never implemented it.
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @Mogztter!
(I squashed all the back and forth commits into a single one and fixed the placement of the new changelog entry)

@elia elia merged commit 2efcc0e into opal:master Jan 5, 2021
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.

None yet

2 participants