Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 445

Show
Ignore:
Timestamp:
01/17/05 17:01:35 (4 years ago)
Author:
david
Message:

Made methods class level methods again

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/lib/binding_of_caller.rb

    r443 r445  
    33rescue LoadError 
    44  class Continuation #:nodoc: 
    5     def create(*args, &block) 
     5    def self.create(*args, &block) 
    66      cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?} 
    77      result ||= args 
     
    3737  # the way that Binding.of_caller is implemented it has to be 
    3838  # done this way. 
    39   def of_caller(&block) 
     39  def self.of_caller(&block) 
    4040    old_critical = Thread.critical 
    4141    Thread.critical = true 
  • trunk/railties/lib/binding_of_caller.rb

    r444 r445  
    33rescue LoadError 
    44  class Continuation #:nodoc: 
    5     def create(*args, &block) 
     5    def self.create(*args, &block) 
    66      cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?} 
    77      result ||= args 
     
    3737  # the way that Binding.of_caller is implemented it has to be 
    3838  # done this way. 
    39   def of_caller(&block) 
     39  def self.of_caller(&block) 
    4040    old_critical = Thread.critical 
    4141    Thread.critical = true