Class: Uttk::Strategies::Proxy

Inherits:
Composite show all
Includes:
Abstract
Defined in:
lib/uttk/strategies/Proxy.rb

Overview

I’m composed by only one strategy and I’m transparent in the log.

Instance Attribute Summary

Attributes inherited from Strategy

#status

Instance Method Summary collapse

Methods inherited from Composite

#<<, #contents, #initialize, #initialize_copy, #initialize_test

Methods inherited from Strategy

#abort, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #name=, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #skip_wrt_rpath_and_rpath_exclude, #strategy, #strategy=, #symbols=, #symtbl, #symtbl=, #testify, #timeout=, to_form, #to_s, to_yaml_type, #wclass=

Constructor Details

This class inherits a constructor from Uttk::Strategies::Composite

Instance Method Details

#create(anObject, &block) ⇒ Object



16
17
18
19
20
21
# File 'lib/uttk/strategies/Proxy.rb', line 16

def create ( anObject, &block )
  unless @contents.empty?
    raise ArgumentError, "A proxy can contain only one test"
  end
  super
end