Top Level Namespace

Defined Under Namespace

Modules: RspecMultiMatchers Classes: MatchEach, MatchEnum, MatchInOrder

Instance Method Summary collapse

Instance Method Details

#each(meta_or_options = nil, &block) ⇒ Object



1
2
3
4
5
6
7
# File 'lib/match_each.rb', line 1

def each meta_or_options = nil, &block
  if block or !meta_or_options
    MatchEach.new meta_or_options, &block
  else
    each_matcher meta_or_options
  end
end

#enum(method, *args, &block) ⇒ Object



73
74
75
# File 'lib/match_enum.rb', line 73

def enum(method, *args, &block)
  MatchEnum.new method, *args, &block
end

#match_in_order(*regexps) ⇒ Object



29
30
31
# File 'lib/match_in_order.rb', line 29

def match_in_order(*regexps)
  MatchInOrder.new(regexps)
end