Skip to content

added branchOn combinator#10

Open
ludicast wants to merge 1 commit into
raganwald:masterfrom
ludicast:branch_branch
Open

added branchOn combinator#10
ludicast wants to merge 1 commit into
raganwald:masterfrom
ludicast:branch_branch

Conversation

@ludicast

Copy link
Copy Markdown
Contributor

The branchOn combinator lets you put some logic in the class declaration.

requestSoda:
  locateWaiter \
  placeOrder \
  branchOn(customerBMI)
    success: bringJumbo
    failure: callCopsOnLardass

I'll add documentation for any of these orphaned combinators your repo adopts (I always TDD them so the tests demonstrate usage).

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.

1 participant