Skip to content

Commit

Permalink
Made methods class level methods again
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Jan 17, 2005
1 parent 1e3b5b1 commit 58f920f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/binding_of_caller.rb
Expand Up @@ -2,7 +2,7 @@
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]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions railties/lib/binding_of_caller.rb
Expand Up @@ -2,7 +2,7 @@
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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 58f920f

Please sign in to comment.