Changeset 445
- Timestamp:
- 01/17/05 17:01:35 (4 years ago)
- Files:
-
- trunk/activesupport/lib/binding_of_caller.rb (modified) (2 diffs)
- trunk/railties/lib/binding_of_caller.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/binding_of_caller.rb
r443 r445 3 3 rescue LoadError 4 4 class Continuation #:nodoc: 5 def create(*args, &block)5 def self.create(*args, &block) 6 6 cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?} 7 7 result ||= args … … 37 37 # the way that Binding.of_caller is implemented it has to be 38 38 # done this way. 39 def of_caller(&block)39 def self.of_caller(&block) 40 40 old_critical = Thread.critical 41 41 Thread.critical = true trunk/railties/lib/binding_of_caller.rb
r444 r445 3 3 rescue LoadError 4 4 class Continuation #:nodoc: 5 def create(*args, &block)5 def self.create(*args, &block) 6 6 cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?} 7 7 result ||= args … … 37 37 # the way that Binding.of_caller is implemented it has to be 38 38 # done this way. 39 def of_caller(&block)39 def self.of_caller(&block) 40 40 old_critical = Thread.critical 41 41 Thread.critical = true