Class: Uttk::Strategies::IOBased
- Includes:
- Abstract
- Defined in:
- lib/uttk/strategies/IOBased.rb
Instance Attribute Summary
Attributes inherited from Strategy
Instance Method Summary collapse
-
#initialize(*a, &b) ⇒ IOBased
constructor
Constructor.
- #stream(name) ⇒ Object
-
#stream_class=(aClass) ⇒ Object
Accessors.
Methods inherited from Strategy
#abort, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #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
#initialize(*a, &b) ⇒ IOBased
Constructor
18 19 20 21 22 23 |
# File 'lib/uttk/strategies/IOBased.rb', line 18 def initialize ( *a, &b ) stream :input stream :output stream :error super end |
Instance Method Details
#stream(name) ⇒ Object
98 99 100 101 102 |
# File 'lib/uttk/strategies/IOBased.rb', line 98 def stream ( name ) @streams ||= [] @streams_name ||= [] @streams_name << name end |