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 ad-hoc filtering of directives #258

Merged
merged 3 commits into from Sep 9, 2014
Merged

Support ad-hoc filtering of directives #258

merged 3 commits into from Sep 9, 2014

Commits on Sep 8, 2014

  1. Relagate filter methods to a FilteringDirective subtype. This

    isolates other directives from the no-op filter strangeness, and opens
    up some possibilities of useful filtering.
    Nathan Hamblen committed Sep 8, 2014
    Configuration menu
    Copy the full SHA
    ca98438 View commit details
    Browse the repository at this point in the history
  2. Construct FilterDirective where possible, to enable filtering.

    When a directive is constructed via `when ... orElse` or
    `Directive#orElse`, we can filter a successful result and fall back to
    the orElse directive. This allows for ad-hoc extention of directive
    requirements in the `if` clause of a for expression.
    
    Added a demonstration to DirectiveSpec.
    Nathan Hamblen committed Sep 8, 2014
    Configuration menu
    Copy the full SHA
    9ed6a7f View commit details
    Browse the repository at this point in the history
  3. Fix spelling error.

    Nathan Hamblen committed Sep 8, 2014
    Configuration menu
    Copy the full SHA
    82f3cc0 View commit details
    Browse the repository at this point in the history