lib/ably/realtime/channels.rb in ably-0.7.0 vs lib/ably/realtime/channels.rb in ably-0.7.1
- old
+ new
@@ -13,10 +13,11 @@
# Return a {Ably::Realtime::Channel} for the given name
#
# @param name [String] The name of the channel
# @param channel_options [Hash] Channel options, currently reserved for Encryption options
# @return [Ably::Realtime::Channel}
+ #
def get(*args)
super
end
# @!method fetch(name, &missing_block)
@@ -25,19 +26,21 @@
#
# @param name [String] The name of the channel
# @yield [options] (optional) if a missing_block is passed to this method and no channel exists matching the name, this block is called
# @yieldparam [String] name of the missing channel
# @return [Ably::Realtime::Channel]
+ #
def fetch(*args)
super
end
# Detaches the {Ably::Realtime::Channel Realtime Channel} and releases all associated resources.
#
# Releasing a Realtime Channel is not typically necessary as a channel, once detached, consumes no resources other than
# the memory footprint of the {Ably::Realtime::Channel Realtime Channel object}. Release channels to free up resources if required
#
# @return [void]
+ #
def release(channel)
get(channel).detach do
@channels.delete(channel)
end if @channels.has_key?(channel)
end