private method is not needed

This commit is contained in:
Aaron Patterson
2010-07-17 14:44:29 -07:00
parent 4226c93779
commit fa73e777a1

View File

@@ -45,7 +45,7 @@ module ActiveSupport
def publish(*args)
return unless subscribed_to?(args.first)
push(*args)
@block.call(*args)
true
end
@@ -58,19 +58,9 @@ module ActiveSupport
end
def matches?(subscriber_or_name)
case subscriber_or_name
when String
self === subscriber_or_name ||
@pattern && @pattern === subscriber_or_name
when self
true
end
end
private
def push(*args)
@block.call(*args)
end
end
end
end