Class: Ramcrest::Includes::Matcher
- Inherits:
-
Enumerable::BaseEnumerableMatcher
- Object
- Enumerable::BaseEnumerableMatcher
- Ramcrest::Includes::Matcher
- Defined in:
- lib/ramcrest/includes.rb
Instance Method Summary collapse
-
#initialize(expected) ⇒ Matcher
constructor
A new instance of Matcher.
Methods inherited from Enumerable::BaseEnumerableMatcher
Methods included from Matcher
#do_match, #matches?, #mismatch, #success
Constructor Details
#initialize(expected) ⇒ Matcher
Returns a new instance of Matcher.
13 14 15 16 17 |
# File 'lib/ramcrest/includes.rb', line 13 def initialize(expected) super("including", expected, Ramcrest::Comparable.greater_or_equal_to(expected.size)) end |