aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/delegate.rb6
-rw-r--r--prelude.rb3
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index c38aea5947..f3660911e6 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -204,12 +204,10 @@ class Delegator < BasicObject
end
end
- # :nodoc:
- def initialize_clone(obj)
+ def initialize_clone(obj) # :nodoc:
self.__setobj__(obj.__getobj__.clone)
end
- # :nodoc:
- def initialize_dup(obj)
+ def initialize_dup(obj) # :nodoc:
self.__setobj__(obj.__getobj__.dup)
end
private :initialize_clone, :initialize_dup
diff --git a/prelude.rb b/prelude.rb
index 40fca6ab36..04bf85044b 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -15,8 +15,7 @@ class Mutex
end
class Thread
- # :nodoc:
- MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new
+ MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc:
# call-seq:
# Thread.exclusive { block } => obj