public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/josh/rails.git
Made methods class level methods again

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@445 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Mon Jan 17 09:01:35 -0800 2005
commit  58f920fecd5133611294412ae7e61592cc809939
tree    9b0b80ef916b16ce8bcdce8d4b6ef32312a98ff3
parent  1e3b5b1fcb3380603e7bb60f7dfc4e7a504e4055
...
2
3
4
5
 
6
7
8
...
36
37
38
39
 
40
41
42
...
2
3
4
 
5
6
7
8
...
36
37
38
 
39
40
41
42
0
@@ -2,7 +2,7 @@ begin
0
   require 'simplecc'
0
 rescue LoadError
0
   class Continuation #:nodoc:
0
- def create(*args, &block)
0
+ def self.create(*args, &block)
0
       cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
0
       result ||= args
0
       return *[cc, *result]
0
@@ -36,7 +36,7 @@ class Binding #:nodoc:
0
   # If you don't do this an Exception will be raised. Because of
0
   # the way that Binding.of_caller is implemented it has to be
0
   # done this way.
0
- def of_caller(&block)
0
+ def self.of_caller(&block)
0
     old_critical = Thread.critical
0
     Thread.critical = true
0
     count = 0
...
2
3
4
5
 
6
7
8
...
36
37
38
39
 
40
41
42
...
2
3
4
 
5
6
7
8
...
36
37
38
 
39
40
41
42
0
@@ -2,7 +2,7 @@ begin
0
   require 'simplecc'
0
 rescue LoadError
0
   class Continuation #:nodoc:
0
- def create(*args, &block)
0
+ def self.create(*args, &block)
0
       cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
0
       result ||= args
0
       return *[cc, *result]
0
@@ -36,7 +36,7 @@ class Binding #:nodoc:
0
   # If you don't do this an Exception will be raised. Because of
0
   # the way that Binding.of_caller is implemented it has to be
0
   # done this way.
0
- def of_caller(&block)
0
+ def self.of_caller(&block)
0
     old_critical = Thread.critical
0
     Thread.critical = true
0
     count = 0

Comments

    No one has commented yet.