aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-17 17:01:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-17 17:01:35 +0000
commit58f920fecd5133611294412ae7e61592cc809939 (patch)
tree9b0b80ef916b16ce8bcdce8d4b6ef32312a98ff3 /activesupport/lib
parent1e3b5b1fcb3380603e7bb60f7dfc4e7a504e4055 (diff)
downloadrails-58f920fecd5133611294412ae7e61592cc809939.tar.gz
rails-58f920fecd5133611294412ae7e61592cc809939.tar.bz2
rails-58f920fecd5133611294412ae7e61592cc809939.zip
Made methods class level methods again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/binding_of_caller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/binding_of_caller.rb b/activesupport/lib/binding_of_caller.rb
index f58e87796c..759e760016 100644
--- a/activesupport/lib/binding_of_caller.rb
+++ b/activesupport/lib/binding_of_caller.rb
@@ -2,7 +2,7 @@ begin
require 'simplecc'
rescue LoadError
class Continuation #:nodoc:
- def create(*args, &block)
+ def self.create(*args, &block)
cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
result ||= args
return *[cc, *result]
@@ -36,7 +36,7 @@ class Binding #:nodoc:
# If you don't do this an Exception will be raised. Because of
# the way that Binding.of_caller is implemented it has to be
# done this way.
- def of_caller(&block)
+ def self.of_caller(&block)
old_critical = Thread.critical
Thread.critical = true
count = 0