Class: XSpec::Scheduler::Filter
- Inherits:
-
Object
- Object
- XSpec::Scheduler::Filter
- Defined in:
- lib/xspec/schedulers.rb
Defined Under Namespace
Classes: FilteredContext
Instance Attribute Summary collapse
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
-
#scheduler ⇒ Object
readonly
Returns the value of attribute scheduler.
Instance Method Summary collapse
-
#initialize(scheduler:, filter:) ⇒ Filter
constructor
A new instance of Filter.
- #run(context, config) ⇒ Object
Constructor Details
#initialize(scheduler:, filter:) ⇒ Filter
39 40 41 42 |
# File 'lib/xspec/schedulers.rb', line 39 def initialize(scheduler:, filter:) @scheduler = scheduler @filter = filter end |
Instance Attribute Details
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
54 55 56 |
# File 'lib/xspec/schedulers.rb', line 54 def filter @filter end |
#scheduler ⇒ Object (readonly)
Returns the value of attribute scheduler.
54 55 56 |
# File 'lib/xspec/schedulers.rb', line 54 def scheduler @scheduler end |
Instance Method Details
#run(context, config) ⇒ Object
44 45 46 |
# File 'lib/xspec/schedulers.rb', line 44 def run(context, config) scheduler.run(FilteredContext.new(context, filter), config) end |