Module: Gimme::Matchers
- Defined in:
- lib/gimme/captor.rb,
lib/gimme/matchers.rb
Defined Under Namespace
Classes: Any, Anything, Boolean, Capture, IsA, Matcher, Numeric
Instance Method Summary
collapse
Instance Method Details
#any(cls) ⇒ Object
36
37
38
|
# File 'lib/gimme/matchers.rb', line 36
def any(cls)
Gimme::Matchers::Any.new(cls)
end
|
#capture(captor) ⇒ Object
19
20
21
|
# File 'lib/gimme/captor.rb', line 19
def capture(captor)
Capture.new(captor)
end
|
#is_a(cls) ⇒ Object
27
28
29
|
# File 'lib/gimme/matchers.rb', line 27
def is_a(cls)
Gimme::Matchers::IsA.new(cls)
end
|