Module: Rbgo::Channel::Chan
- Included in:
- BufferChan, NonBufferChan
- Defined in:
- lib/rbgo/select_chan.rb
Class Method Summary collapse
Class Method Details
.new(max = 0) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rbgo/select_chan.rb', line 7 def self.new(max = 0) if max <= 0 NonBufferChan.new else BufferChan.new(max) end end |