lib/nanoc/base/notification_center.rb in nanoc-3.7.3 vs lib/nanoc/base/notification_center.rb in nanoc-3.7.4
- old
+ new
@@ -68,10 +68,10 @@
# Remove relevant observers
@notifications[name].reject! { |i| i[:id] == id }
end
- private
+ private
def initialize_if_necessary(name)
@notifications ||= {} # name => observers dictionary
@notifications[name] ||= [] # list of observers
end