Class: XSpec::Scheduler::Filter::FilteredContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



48
49
50
# File 'lib/xspec/schedulers.rb', line 48

def context
  @context
end

#filterObject

Returns the value of attribute filter

Returns:

  • (Object)

    the current value of filter



48
49
50
# File 'lib/xspec/schedulers.rb', line 48

def filter
  @filter
end

Instance Method Details

#nested_units_of_workObject



49
50
51
# File 'lib/xspec/schedulers.rb', line 49

def nested_units_of_work
  context.nested_units_of_work.select(&filter)
end