@@ -45,7 +45,7 @@ class RDoc::ClassModule < RDoc::Context
4545 #--
4646 # TODO move to RDoc::NormalClass (I think)
4747
48- def self . from_module class_type , mod
48+ def self . from_module ( class_type , mod )
4949 klass = class_type . new mod . name
5050
5151 mod . comment_location . each do |comment , location |
@@ -120,7 +120,7 @@ def initialize(name, superclass = nil)
120120 # method is preferred over #comment= since it allows ri data to be updated
121121 # across multiple runs.
122122
123- def add_comment comment , location
123+ def add_comment ( comment , location )
124124 return unless document_self
125125
126126 original = comment
@@ -141,7 +141,7 @@ def add_comment comment, location
141141 self . comment = original
142142 end
143143
144- def add_things my_things , other_things # :nodoc:
144+ def add_things ( my_things , other_things ) # :nodoc:
145145 other_things . each do |group , things |
146146 my_things [ group ] . each { |thing | yield false , thing } if
147147 my_things . include? group
@@ -198,7 +198,7 @@ def clear_comment
198198 # Appends +comment+ to the current comment, but separated by a rule. Works
199199 # more like <tt>+=</tt>.
200200
201- def comment = comment # :nodoc:
201+ def comment = ( comment ) # :nodoc:
202202 comment = case comment
203203 when RDoc ::Comment then
204204 comment . normalize
@@ -216,7 +216,7 @@ def comment= comment # :nodoc:
216216 #
217217 # See RDoc::Store#complete
218218
219- def complete min_visibility
219+ def complete ( min_visibility )
220220 update_aliases
221221 remove_nodoc_children
222222 embed_mixins
@@ -259,7 +259,7 @@ def each_ancestor # :yields: module
259259 ##
260260 # Looks for a symbol in the #ancestors. See Context#find_local_symbol.
261261
262- def find_ancestor_local_symbol symbol
262+ def find_ancestor_local_symbol ( symbol )
263263 each_ancestor do |m |
264264 res = m . find_local_symbol ( symbol )
265265 return res if res
@@ -271,7 +271,7 @@ def find_ancestor_local_symbol symbol
271271 ##
272272 # Finds a class or module with +name+ in this namespace or its descendants
273273
274- def find_class_named name
274+ def find_class_named ( name )
275275 return self if full_name == name
276276 return self if @name == name
277277
@@ -360,7 +360,7 @@ def marshal_dump # :nodoc:
360360 ]
361361 end
362362
363- def marshal_load array # :nodoc:
363+ def marshal_load ( array ) # :nodoc:
364364 initialize_visibility
365365 initialize_methods_etc
366366 @current_section = nil
@@ -450,7 +450,7 @@ def marshal_load array # :nodoc:
450450 #
451451 # The data in +class_module+ is preferred over the receiver.
452452
453- def merge class_module
453+ def merge ( class_module )
454454 @parent = class_module . parent
455455 @parent_name = class_module . parent_name
456456
@@ -535,7 +535,7 @@ def merge class_module
535535 # end
536536 # end
537537
538- def merge_collections mine , other , other_files , &block # :nodoc:
538+ def merge_collections ( mine , other , other_files , &block ) # :nodoc:
539539 my_things = mine . group_by { |thing | thing . file }
540540 other_things = other . group_by { |thing | thing . file }
541541
@@ -547,7 +547,7 @@ def merge_collections mine, other, other_files, &block # :nodoc:
547547 # Merges the comments in this ClassModule with the comments in the other
548548 # ClassModule +cm+.
549549
550- def merge_sections cm # :nodoc:
550+ def merge_sections ( cm ) # :nodoc:
551551 my_sections = sections . group_by { |section | section . title }
552552 other_sections = cm . sections . group_by { |section | section . title }
553553
@@ -595,15 +595,15 @@ def module?
595595 #
596596 # Used for modules and classes that are constant aliases.
597597
598- def name = new_name
598+ def name = ( new_name )
599599 @name = new_name
600600 end
601601
602602 ##
603603 # Parses +comment_location+ into an RDoc::Markup::Document composed of
604604 # multiple RDoc::Markup::Documents with their file set.
605605
606- def parse comment_location
606+ def parse ( comment_location )
607607 case comment_location
608608 when String then
609609 super
@@ -675,7 +675,7 @@ def remove_nodoc_children
675675 end
676676 end
677677
678- def remove_things my_things , other_files # :nodoc:
678+ def remove_things ( my_things , other_files ) # :nodoc:
679679 my_things . delete_if do |file , things |
680680 next false unless other_files . include? file
681681
@@ -705,7 +705,7 @@ def search_record
705705 ##
706706 # Sets the store for this class or module and its contained code objects.
707707
708- def store = store
708+ def store = ( store )
709709 super
710710
711711 @attributes . each do |attr | attr . store = store end
0 commit comments