Method: RDoc::Context#remove_invisible_in
- Defined in:
- lib/rdoc/code_object/context.rb
#remove_invisible_in(array, min_visibility) ⇒ Object
Only called when min_visibility == :public or :private
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/rdoc/code_object/context.rb', line 1117 def remove_invisible_in array, min_visibility # :nodoc: if min_visibility == :public then array.reject! { |e| e.visibility != :public and not e.force_documentation } else array.reject! { |e| e.visibility == :private and not e.force_documentation } end end |