Class: RIO::IOH::Base
Instance Attribute Summary collapse
-
#ios ⇒ Object
readonly
Returns the value of attribute ios.
Instance Method Summary collapse
- #callstr(func, *args) ⇒ Object
- #handle ⇒ Object
-
#initialize(ios, *args) ⇒ Base
constructor
A new instance of Base.
- #initialize_copy(other) ⇒ Object
- #open? ⇒ Boolean
Constructor Details
#initialize(ios, *args) ⇒ Base
Returns a new instance of Base.
43 44 45 |
# File 'lib/rio/ioh.rb', line 43 def initialize(ios,*args) @ios = ios end |
Instance Attribute Details
#ios ⇒ Object (readonly)
Returns the value of attribute ios.
42 43 44 |
# File 'lib/rio/ioh.rb', line 42 def ios @ios end |
Instance Method Details
#callstr(func, *args) ⇒ Object
52 53 54 |
# File 'lib/rio/ioh.rb', line 52 def callstr(func,*args) self.class.to_s+'['+self.to_s+']'+'.'+func.to_s+'('+args.join(',')+')' end |
#handle ⇒ Object
55 |
# File 'lib/rio/ioh.rb', line 55 def handle() @ios end |
#initialize_copy(other) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/rio/ioh.rb', line 46 def initialize_copy(other) #p callstr('ioh:initialize_copy',other) super #p @ios @ios = other.ios.clone unless other.ios.nil? end |
#open? ⇒ Boolean
56 |
# File 'lib/rio/ioh.rb', line 56 def open?() not closed? end |