Browse files

Rename method added hooks

  • Loading branch information...
1 parent c7c062f commit 0d2064fab130ac6109e3b9aff61b9542177b5bfe @gcao committed Feb 14, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/aspector/base.rb
  2. +2 −2 lib/aspector/module_extension.rb
View
4 lib/aspector/base.rb
@@ -175,7 +175,7 @@ def aop_add_method_hooks
orig_singleton_method_added = @aop_target.method(:singleton_method_added)
eigen_class.send :define_method, :singleton_method_added do |method|
- singleton_method_added_aspector(method) do
+ aop_singleton_method_added(method) do
orig_singleton_method_added.call(method)
end
end
@@ -189,7 +189,7 @@ def aop_add_method_hooks
end
eigen_class.send :define_method, :method_added do |method|
- method_added_aspector(method) do
+ aop_method_added(method) do
orig_method_added.call(method)
end
end
View
4 lib/aspector/module_extension.rb
@@ -4,7 +4,7 @@ module ModuleExtension
private
- def method_added_aspector method
+ def aop_method_added method
return (block_given? and yield) if
@aop_creating_method or
@aop_instances.nil? or @aop_instances.empty?
@@ -23,7 +23,7 @@ def method_added_aspector method
end
end
- def singleton_method_added_aspector method
+ def aop_singleton_method_added method
# Note: methods involved are on eigen class
eigen_class = class << self; self; end

0 comments on commit 0d2064f

Please sign in to comment.