Class Expect::SeparatedPattern
In: lib/facet/expect.rb
Parent: Object

A special type of pattern that matches a list of patterns, separated by a given separator, in any order.

Example: <pre>

  # matches 'foo,bar' and 'bar,foo'
  p = Expect::SeparatedPattern.new(['foo', 'bar'])

  e = Expect.new(nil, nil)
  e.expect(p)

</pre>

Methods

===   new  

Attributes

separator  [RW] 

Public Class methods

Public Instance methods

[Validate]