Permalink
Browse files

Clean up api

  • Loading branch information...
gcao committed Jan 2, 2013
1 parent a631bd0 commit 56742118f38d12cdad3c5b7a4e451264f563cb62
View
@@ -61,10 +61,6 @@ def around?
type == AROUND
end
- def invoke obj, *args, &block
- obj.send with_method, *args, &block
- end
-
def type_name
case @type
when BEFORE then @options[:skip_if_false] ? "BEFORE_FILTER" : "BEFORE"
@@ -74,6 +70,10 @@ def type_name
else "UNKNOWN?!"
end
end
+
+ def use_deferred_logic? logic
+ method_matcher.use_deferred_logic? logic
+ end
def to_s
s = "#{name}: "
@@ -3,8 +3,8 @@ class AspectInstances < Array
def apply_to_method method
each do |aspect_instance|
- next if aspect_instance.aop_options[:old_methods_only]
- aspect_instance.aop_apply_to_method method, aspect_instance.aop_advices
+ next if aspect_instance.options[:old_methods_only]
+ aspect_instance.apply_to_method method
end
end
Oops, something went wrong.

0 comments on commit 5674211

Please sign in to comment.