Class: Counter::RSpecMatchers::Base
- Inherits:
-
RSpec::Matchers::BuiltIn::Change
- Object
- RSpec::Matchers::BuiltIn::Change
- Counter::RSpecMatchers::Base
- Defined in:
- lib/counter/rspec/matchers.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(counter_class, parent) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(counter_class, parent) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/counter/rspec/matchers.rb', line 12 def initialize(counter_class, parent) super { parent.counters.find_or_create_counter!(counter_class).value } end |