Class: XSpec::Scheduler::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/xspec/schedulers.rb

Defined Under Namespace

Classes: FilteredContext

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filterObject (readonly)

Returns the value of attribute filter.



54
55
56
# File 'lib/xspec/schedulers.rb', line 54

def filter
  @filter
end

#schedulerObject (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