projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Functional tests now work properly, bearing in mind whether a user is logged in or...
[depot.git]
/
vendor
/
rails
/
activesupport
/
lib
/
active_support
/
core_ext
/
proc.rb
1
class
Proc
#:nodoc:
2
def
bind
(
object
)
3
block
,
time
=
self
,
Time
.
now
4
(
class
<<
object
;
self end
).
class_eval
do
5
method_name
=
"__bind_#{time.to_i}_#{time.usec}"
6
define_method
(
method_name
, &
block
)
7
method
=
instance_method
(
method_name
)
8
remove_method
(
method_name
)
9
method
10
end
.
bind
(
object
)
11
end
12
end