class Channel::ReceiveOnly

Public Class Methods

new(channel) click to toggle source
# File lib/channel.rb, line 111
def initialize(channel)
  @channel = channel
end

Public Instance Methods

<<(_)
Alias for: push
close() click to toggle source
# File lib/channel.rb, line 126
def close
  @channel.close
end
closed?() click to toggle source
# File lib/channel.rb, line 130
def closed?
  @channel.closed?
end
hash() click to toggle source
# File lib/channel.rb, line 144
def hash
  @channel.hash
end
pop()
Alias for: recv
push(_)
Also aliased as: <<
Alias for: send
r!()
Alias for: receive_only!
receive_only!() click to toggle source
# File lib/channel.rb, line 134
def receive_only!
  self
end
Also aliased as: r!
recv() click to toggle source
# File lib/channel.rb, line 115
def recv
  @channel.recv
end
Also aliased as: pop
s!()
Alias for: send_only!
send(_) click to toggle source
# File lib/channel.rb, line 120
def send(_)
  fail Direction, 'receive only'
end
Also aliased as: push
send_only!() click to toggle source
# File lib/channel.rb, line 139
def send_only!
  fail Conversion, 'receive only'
end
Also aliased as: s!