Skip to content

Move processing of lhs_s_value method to Binding class - #501

Merged
ydah merged 1 commit into
ruby:masterfrom
ydah:refactor-inline2
Jan 6, 2025
Merged

Move processing of lhs_s_value method to Binding class#501
ydah merged 1 commit into
ruby:masterfrom
ydah:refactor-inline2

Conversation

@ydah

@ydah ydah commented Jan 2, 2025

Copy link
Copy Markdown
Member

This PR move processing of lhs_s_value method to Binding class.

@ydah
ydah marked this pull request as ready for review January 2, 2025 16:40
end

def token_to_args_s_values(token)
token.args.flat_map do |arg|

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note: Array#join expands array of array recursively then both #flat_map and #map works. However returning unnested array is simpler.

@ydah
ydah merged commit 549bf14 into ruby:master Jan 6, 2025
@ydah
ydah deleted the refactor-inline2 branch January 6, 2025 06:39
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