Class: Uttk::Strategies::Import
- Includes:
- Concrete
- Defined in:
- lib/uttk/strategies/Import.rb
Overview
I can import a strategy from on another file. Just tell me which file using my import attribute and which loader to use using my loader attribute.
Instance Attribute Summary
Attributes inherited from Strategy
Instance Method Summary collapse
Methods inherited from Proxy
Methods inherited from Composite
#<<, #contents, #create, #initialize, #initialize_copy, #initialize_test
Methods inherited from Strategy
#abort, #assert_cmd, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #mk_system_runner, #name=, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #skip_pass, #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
#import=(aPath) ⇒ Object
40 41 42 43 |
# File 'lib/uttk/strategies/Import.rb', line 40 def import= ( aPath ) @import = aPath @import = Pathname.new(aPath) unless aPath.is_a? Pathname end |
#loader=(aLoader) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/uttk/strategies/Import.rb', line 45 def loader= ( aLoader ) if aLoader.is_a? Loaders::Loader @loader = aLoader else @loader = Loaders.const_get(aLoader).new end end |