@@ -45,7 +45,7 @@ class RDoc::ClassModule < RDoc::Context
45
45
#--
46
46
# TODO move to RDoc::NormalClass (I think)
47
47
48
- def self . from_module class_type , mod
48
+ def self . from_module ( class_type , mod )
49
49
klass = class_type . new mod . name
50
50
51
51
mod . comment_location . each do |comment , location |
@@ -120,7 +120,7 @@ def initialize(name, superclass = nil)
120
120
# method is preferred over #comment= since it allows ri data to be updated
121
121
# across multiple runs.
122
122
123
- def add_comment comment , location
123
+ def add_comment ( comment , location )
124
124
return unless document_self
125
125
126
126
original = comment
@@ -141,7 +141,7 @@ def add_comment comment, location
141
141
self . comment = original
142
142
end
143
143
144
- def add_things my_things , other_things # :nodoc:
144
+ def add_things ( my_things , other_things ) # :nodoc:
145
145
other_things . each do |group , things |
146
146
my_things [ group ] . each { |thing | yield false , thing } if
147
147
my_things . include? group
@@ -198,7 +198,7 @@ def clear_comment
198
198
# Appends +comment+ to the current comment, but separated by a rule. Works
199
199
# more like <tt>+=</tt>.
200
200
201
- def comment = comment # :nodoc:
201
+ def comment = ( comment ) # :nodoc:
202
202
comment = case comment
203
203
when RDoc ::Comment then
204
204
comment . normalize
@@ -216,7 +216,7 @@ def comment= comment # :nodoc:
216
216
#
217
217
# See RDoc::Store#complete
218
218
219
- def complete min_visibility
219
+ def complete ( min_visibility )
220
220
update_aliases
221
221
remove_nodoc_children
222
222
embed_mixins
@@ -259,7 +259,7 @@ def each_ancestor # :yields: module
259
259
##
260
260
# Looks for a symbol in the #ancestors. See Context#find_local_symbol.
261
261
262
- def find_ancestor_local_symbol symbol
262
+ def find_ancestor_local_symbol ( symbol )
263
263
each_ancestor do |m |
264
264
res = m . find_local_symbol ( symbol )
265
265
return res if res
@@ -271,7 +271,7 @@ def find_ancestor_local_symbol symbol
271
271
##
272
272
# Finds a class or module with +name+ in this namespace or its descendants
273
273
274
- def find_class_named name
274
+ def find_class_named ( name )
275
275
return self if full_name == name
276
276
return self if @name == name
277
277
@@ -360,7 +360,7 @@ def marshal_dump # :nodoc:
360
360
]
361
361
end
362
362
363
- def marshal_load array # :nodoc:
363
+ def marshal_load ( array ) # :nodoc:
364
364
initialize_visibility
365
365
initialize_methods_etc
366
366
@current_section = nil
@@ -450,7 +450,7 @@ def marshal_load array # :nodoc:
450
450
#
451
451
# The data in +class_module+ is preferred over the receiver.
452
452
453
- def merge class_module
453
+ def merge ( class_module )
454
454
@parent = class_module . parent
455
455
@parent_name = class_module . parent_name
456
456
@@ -535,7 +535,7 @@ def merge class_module
535
535
# end
536
536
# end
537
537
538
- def merge_collections mine , other , other_files , &block # :nodoc:
538
+ def merge_collections ( mine , other , other_files , &block ) # :nodoc:
539
539
my_things = mine . group_by { |thing | thing . file }
540
540
other_things = other . group_by { |thing | thing . file }
541
541
@@ -547,7 +547,7 @@ def merge_collections mine, other, other_files, &block # :nodoc:
547
547
# Merges the comments in this ClassModule with the comments in the other
548
548
# ClassModule +cm+.
549
549
550
- def merge_sections cm # :nodoc:
550
+ def merge_sections ( cm ) # :nodoc:
551
551
my_sections = sections . group_by { |section | section . title }
552
552
other_sections = cm . sections . group_by { |section | section . title }
553
553
@@ -595,15 +595,15 @@ def module?
595
595
#
596
596
# Used for modules and classes that are constant aliases.
597
597
598
- def name = new_name
598
+ def name = ( new_name )
599
599
@name = new_name
600
600
end
601
601
602
602
##
603
603
# Parses +comment_location+ into an RDoc::Markup::Document composed of
604
604
# multiple RDoc::Markup::Documents with their file set.
605
605
606
- def parse comment_location
606
+ def parse ( comment_location )
607
607
case comment_location
608
608
when String then
609
609
super
@@ -675,7 +675,7 @@ def remove_nodoc_children
675
675
end
676
676
end
677
677
678
- def remove_things my_things , other_files # :nodoc:
678
+ def remove_things ( my_things , other_files ) # :nodoc:
679
679
my_things . delete_if do |file , things |
680
680
next false unless other_files . include? file
681
681
@@ -705,7 +705,7 @@ def search_record
705
705
##
706
706
# Sets the store for this class or module and its contained code objects.
707
707
708
- def store = store
708
+ def store = ( store )
709
709
super
710
710
711
711
@attributes . each do |attr | attr . store = store end
0 commit comments