1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Removed old names of internal methods

This commit is contained in:
Nobuyoshi Nakada 2019-05-10 09:01:08 +09:00
parent a7b68e63c5
commit dbcc224f38
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -176,10 +176,6 @@ class OpenStruct
end
private :modifiable?
# ::Kernel.warn("do not use OpenStruct#modifiable", uplevel: 1)
alias modifiable modifiable? # :nodoc:
protected :modifiable
#
# Used internally to defined properties on the
# OpenStruct. It does this by using the metaprogramming function
@ -195,10 +191,6 @@ class OpenStruct
end
private :new_ostruct_member!
# ::Kernel.warn("do not use OpenStruct#new_ostruct_member", uplevel: 1)
alias new_ostruct_member new_ostruct_member! # :nodoc:
protected :new_ostruct_member
def freeze
@table.each_key {|key| new_ostruct_member!(key)}
super