Skip to content

Feature/frozen string #12

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

Feature/frozen string #12

wants to merge 2 commits into from

Conversation

berkes
Copy link

@berkes berkes commented May 1, 2018

I got a 'gsub!': can't modify frozen String (RuntimeError).

This fixes the issue for both older and newer Ruby.
It also actually prints the formatted string, otherwise the function is kinda useless 😃

berkes added 2 commits May 1, 2018 11:16
By dupping the ARGV, we avoid "frozen string" manipulation, wich causes
an error in newer Ruby versions.
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.

1 participant