Class: RubyEventStore::RSpec::BeEvent::KindMatcher
- Inherits:
-
Object
- Object
- RubyEventStore::RSpec::BeEvent::KindMatcher
- Defined in:
- lib/ruby_event_store/rspec/be_event.rb
Instance Method Summary collapse
-
#initialize(expected) ⇒ KindMatcher
constructor
A new instance of KindMatcher.
- #matches?(actual) ⇒ Boolean
Constructor Details
#initialize(expected) ⇒ KindMatcher
Returns a new instance of KindMatcher.
7 8 9 |
# File 'lib/ruby_event_store/rspec/be_event.rb', line 7 def initialize(expected) @expected = expected end |
Instance Method Details
#matches?(actual) ⇒ Boolean
11 12 13 |
# File 'lib/ruby_event_store/rspec/be_event.rb', line 11 def matches?(actual) @expected === actual end |