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
|
#anything ⇒ Object
14
15
16
|
# File 'lib/gimme/matchers.rb', line 14
def anything
Gimme::Matchers::Anything.new
end
|
#boolean ⇒ Object
54
55
56
|
# File 'lib/gimme/matchers.rb', line 54
def boolean
Gimme::Matchers::Boolean.new
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
|
#numeric ⇒ Object
45
46
47
|
# File 'lib/gimme/matchers.rb', line 45
def numeric
Gimme::Matchers::Numeric.new
end
|