Method: RIO::Mode::Base#initialize
- Defined in:
- lib/rio/iomode.rb
#initialize(arg) ⇒ Base
Returns a new instance of Base.
46 47 48 49 50 51 52 |
# File 'lib/rio/iomode.rb', line 46 def initialize(arg) if arg.kind_of? self.class copy(arg) else @mode = arg end end |