Class Spec::DSL::ExampleMatcher
In: lib/spec/dsl/example_matcher.rb
Parent: Object

Methods

matches?   new  

Attributes

example_desc  [W] 

Public Class methods

[Source]

   # File lib/spec/dsl/example_matcher.rb, line 6
6:       def initialize(behaviour_desc, example_desc=nil)
7:         @behaviour_desc = behaviour_desc
8:         @example_desc = example_desc
9:       end

Public Instance methods

[Source]

    # File lib/spec/dsl/example_matcher.rb, line 11
11:       def matches?(specified_examples)
12:         specified_examples.each do |specified_example|
13:           return true if matches_literal_example?(specified_example) || matches_example_not_considering_modules?(specified_example)
14:         end
15:         false
16:       end

[Validate]