Class: RIO::IOWrap::Base

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

Direct Known Subclasses

Stream

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ios) ⇒ Base

Returns a new instance of Base.



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

def initialize(ios)
  @ios = ios
end

Instance Attribute Details

#iosObject (readonly)

Returns the value of attribute ios.



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

def ios
  @ios
end

Instance Method Details

#callstr(func, *args) ⇒ Object



39
40
41
# File 'lib/rio/iowrap.rb', line 39

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

#handleObject



42
# File 'lib/rio/iowrap.rb', line 42

def handle() @ios end

#initialize_copy(other) ⇒ Object



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

def initialize_copy(other)
  super
  @ios = other.ios.clone unless other.ios.nil?
end

#open?Boolean

Returns:

  • (Boolean)


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

def open?() not closed? end