Skip to content

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

@markburns

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions