Class: XSpec::Scheduler::Filter::FilteredContext
- Inherits:
-
Struct
- Object
- Struct
- XSpec::Scheduler::Filter::FilteredContext
- Defined in:
- lib/xspec/schedulers.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#filter ⇒ Object
Returns the value of attribute filter.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
48 49 50 |
# File 'lib/xspec/schedulers.rb', line 48 def context @context end |
#filter ⇒ Object
Returns the value of attribute filter
48 49 50 |
# File 'lib/xspec/schedulers.rb', line 48 def filter @filter end |
Instance Method Details
#nested_units_of_work ⇒ Object
49 50 51 |
# File 'lib/xspec/schedulers.rb', line 49 def nested_units_of_work context.nested_units_of_work.select(&filter) end |