class Channel::SendOnly

Public Class Methods

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

Public Instance Methods

<<(val)
Alias for: push
close() click to toggle source
# File lib/channel.rb, line 165
def close
  @channel.close
end
closed?() click to toggle source
# File lib/channel.rb, line 169
def closed?
  @channel.closed?
end
hash() click to toggle source
# File lib/channel.rb, line 183
def hash
  @channel.hash
end
pop()
Alias for: recv
push(val)
Also aliased as: <<
Alias for: send
r!()
Alias for: receive_only!
receive_only!() click to toggle source
# File lib/channel.rb, line 173
def receive_only!
  fail Conversion, 'send only'
end
Also aliased as: r!
recv() click to toggle source
# File lib/channel.rb, line 154
def recv
  fail Direction, 'send only'
end
Also aliased as: pop
s!()
Alias for: send_only!
send(val) click to toggle source
# File lib/channel.rb, line 159
def send(val)
  @channel.send(val)
end
Also aliased as: push
send_only!() click to toggle source
# File lib/channel.rb, line 178
def send_only!
  self
end
Also aliased as: s!