lib/nanoc3/base/notification_center.rb in nanoc3-3.1.0a2 vs lib/nanoc3/base/notification_center.rb in nanoc3-3.1.0a3
- old
+ new
@@ -15,16 +15,16 @@
# Adds the given block to the list of blocks that should be called when
# the notification with the given name is received.
#
# @param [String, Symbol] name The name of the notification that will
- # cause the given block to be called.
+ # cause the given block to be called.
#
# @param [String, Symbol, nil] id An identifier for the block. This is
- # only used to be able to remove the block (using the remove method)
- # later. Can be nil, but this is not recommended because it prevents
- # the given notification block from being unregistered.
+ # only used to be able to remove the block (using the remove method)
+ # later. Can be nil, but this is not recommended because it prevents
+ # the given notification block from being unregistered.
#
# @yield [*args] Will be executed with the arguments passed to {.post}
#
# @return [void]
def on(name, id=nil, &block)
@@ -35,14 +35,14 @@
end
# Posts a notification with the given name and the given arguments.
#
# @param [String, Symbol] name The name of the notification that should
- # be posted.
+ # be posted.
#
# @param args Arguments that wil be passed to the blocks handling the
- # notification.
+ # notification.
#
# @return [void]
def post(name, *args)
initialize_if_necessary(name)
@@ -55,13 +55,13 @@
# Removes the block with the given identifier from the list of blocks
# that should be called when the notification with the given name is
# posted.
#
# @param [String, Symbol] name The name of the notification that should
- # no longer be registered.
+ # no longer be registered.
#
# @param [String, Symbol] id The identifier of the block that should be
- # removed.
+ # removed.
#
# @return [void]
def remove(name, id)
initialize_if_necessary(name)