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:
parent
a7b68e63c5
commit
dbcc224f38
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue