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

Update quotes for heredocs with embedded Ruby with \n #1236

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Jan 8, 2025

The default behaviour for heredocs is the double quote style of quotes, which means the generated code looks like:

ObjectSpace.define_finalizer(obj, Proc.new { STDOUT.write "finalized
" })

It works, but it's ugly.

The default behaviour for heredocs is the double quote style of quotes, which
means the generated code looks like:

    ObjectSpace.define_finalizer(obj, Proc.new { STDOUT.write "finalized
    " })

It works, but it's ugly.
@andrykonchin andrykonchin merged commit b9c5d34 into ruby:master Jan 8, 2025
17 checks passed
@herwinw herwinw deleted the define_finalizer_heredoc branch January 9, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants