Project

General

Profile

Actions

Bug #11587

closed

Make OpenStruct#new_ostruct_member and #modifiable fully private API

Added by Eregon (Benoit Daloze) over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:71069]

Description

#6056 made OpenStruct#new_ostruct_member and #modifiable protected,
but they still appear in RDoc and normal user documentation:
http://ruby-doc.org/stdlib-2.2.3/libdoc/ostruct/rdoc/OpenStruct.html#method-i-new_ostruct_member
Also, it seems they should really be private and not just protected.

These methods look like they should be implementation details and therefore be hidden from the user.

Is it fine from a compatibility point of view to make them private and hide them from user documentation?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0