Class: Uttk::Strategies::IOBased

Inherits:
Strategy show all
Includes:
Abstract
Defined in:
lib/uttk/strategies/IOBased.rb

Direct Known Subclasses

Block, CmdBase

Instance Attribute Summary

Attributes inherited from Strategy

#status

Instance Method Summary collapse

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

#stream_class=(aClass) ⇒ Object

Accessors



132
133
134
135
136
137
138
# File 'lib/uttk/strategies/IOBased.rb', line 132

def stream_class= ( aClass )
  if aClass.is_a? Class
    @stream_class = aClass
  else
    @stream_class = Streams.const_get(aClass)
  end
end