mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Add missing info for Mutex_m to the doc [Bug #13598]
* lib/mutex_m.rb: The #initialize method in a class that includes Mutex_m needs calling #super. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									fdbc8eed42
								
							
						
					
					
						commit
						bb6b273f3d
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -25,10 +25,14 @@
 | 
			
		|||
#   obj.extend Mutex_m
 | 
			
		||||
#
 | 
			
		||||
# Or mixin Mutex_m into your module to your class inherit Mutex instance
 | 
			
		||||
# methods.
 | 
			
		||||
# methods ---remember to call super() in your class initialize method.
 | 
			
		||||
#
 | 
			
		||||
#   class Foo
 | 
			
		||||
#     include Mutex_m
 | 
			
		||||
#     def initialize ...
 | 
			
		||||
#       ...
 | 
			
		||||
#       super()
 | 
			
		||||
#     end
 | 
			
		||||
#     # ...
 | 
			
		||||
#   end
 | 
			
		||||
#   obj = Foo.new
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue