Skip to content

Commit

Permalink
#{UNIQ}_method -> #{UNIQ}_old_method
Browse files Browse the repository at this point in the history
  • Loading branch information
up_the_irons committed Sep 27, 2008
1 parent 27e4d65 commit 8768bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/immutable.rb
Expand Up @@ -13,7 +13,7 @@ def immutable_method(*args)
opts = args.last.is_a?(Hash) ? args.pop : {}

args.each do |method|
alias_method "#{UNIQ}_#{method}", method
alias_method "#{UNIQ}_old_#{method}", method
end

@allow_method_override = false
Expand All @@ -31,7 +31,7 @@ def self.method_added(sym)
allow_method_override do
self.module_eval <<-"end;"
def #{method}(*args, &block)
#{UNIQ}_#{method}(*args, &block)
#{UNIQ}_old_#{method}(*args, &block)
end
end;
end
Expand Down

0 comments on commit 8768bbd

Please sign in to comment.