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
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
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
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!