Permalink
Browse files

Tweaked the @decorated_methods ivar

  • Loading branch information...
1 parent 4261b35 commit 76f7a689148b3d3394173b9dae3c6c5ee10cc52e @fredwu committed Sep 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ruby_decorators.rb
View
@@ -4,11 +4,11 @@
module RubyDecorators
def method_added(method_name)
- @decorated_methods ||= []
+ @__decorated_methods ||= []
return if RubyDecorators::Stack.decorators.empty? ||
method_name.to_s =~ /__undecorated_/ ||
- @decorated_methods.include?(method_name)
+ @__decorated_methods.include?(method_name)
current_decorator = RubyDecorators::Stack.decorators.pop
method_visibility = detect_method_visibility(method_name)
@@ -32,7 +32,7 @@ def #{method_name}(*args, &blk)
end
RUBY_EVAL
- @decorated_methods << method_name
+ @__decorated_methods << method_name
end
private

0 comments on commit 76f7a68

Please sign in to comment.