Skip to content

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

Description

@markburns

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions