Class: RIO::IOH::Base

Inherits:
Object show all
Defined in:
lib/rio/ioh.rb

Direct Known Subclasses

Dir, Stream

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ios, *args) ⇒ Base

Returns a new instance of Base.



32
33
34
# File 'lib/rio/ioh.rb', line 32

def initialize(ios,*args)
  @ios = ios
end

Instance Attribute Details

#iosObject

Returns the value of attribute ios.



31
32
33
# File 'lib/rio/ioh.rb', line 31

def ios
  @ios
end

Instance Method Details

#callstr(func, *args) ⇒ Object



40
41
42
# File 'lib/rio/ioh.rb', line 40

def callstr(func,*args)
  self.class.to_s+'['+self.to_s+']'+'.'+func.to_s+'('+args.join(',')+')'
end

#handleObject



45
# File 'lib/rio/ioh.rb', line 45

def handle() ios end

#initialize_copy(other) ⇒ Object



35
36
37
38
39
# File 'lib/rio/ioh.rb', line 35

def initialize_copy(other)
  #p callstr('ioh:initialize_copy',other)
  super
  @ios = other.ios.clone unless other.ios.nil?
end

#iorObject



43
# File 'lib/rio/ioh.rb', line 43

def ior() ios end

#iowObject



44
# File 'lib/rio/ioh.rb', line 44

def iow() ios end

#open?Boolean

Returns:

  • (Boolean)


46
# File 'lib/rio/ioh.rb', line 46

def open?() not closed? end