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

support nested method calls like each('order.line_items', A, B, C) #28

Open
markburns opened this issue Jan 4, 2024 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@markburns
Copy link
Owner

This is a common enough use case and the alternative is a little ugly:

organize \
  -> { _1.line_items = _1.order.line_items },
  each(:line_items, A, B, C)

VS

organize each('order.line_items', A, B, C)

Gut feeling suggests we can allow arbitrary length method chaining, but we should raise when the returned value is not Enumerable

@markburns markburns added the good first issue Good for newcomers label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant