Class: Crspec::ProcessRunner::FilteredGroups::GroupProxy
- Inherits:
-
Object
- Object
- Crspec::ProcessRunner::FilteredGroups::GroupProxy
show all
- Defined in:
- lib/crspec/process_runner.rb
Instance Method Summary
collapse
Constructor Details
#initialize(group, keys) ⇒ GroupProxy
Returns a new instance of GroupProxy.
320
321
322
323
|
# File 'lib/crspec/process_runner.rb', line 320
def initialize(group, keys)
@group = group
@keys = keys
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
338
339
340
|
# File 'lib/crspec/process_runner.rb', line 338
def method_missing(name, *args, &block)
@group.send(name, *args, &block)
end
|
Instance Method Details
#children ⇒ Object
334
335
336
|
# File 'lib/crspec/process_runner.rb', line 334
def children
@group.children.map { |c| GroupProxy.new(c, @keys) }
end
|
#examples ⇒ Object
330
331
332
|
# File 'lib/crspec/process_runner.rb', line 330
def examples
@group.examples.select { |ex| @keys[ex.persistence_key] }
end
|
#finalize! ⇒ Object
325
326
327
328
|
# File 'lib/crspec/process_runner.rb', line 325
def finalize!
@group.finalize!
self
end
|
#respond_to_missing?(name, include_private = false) ⇒ Boolean
342
343
344
|
# File 'lib/crspec/process_runner.rb', line 342
def respond_to_missing?(name, include_private = false)
@group.respond_to?(name, include_private) || super
end
|