mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
2afbe7113a
commit
37b445eaeb
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ class OpenStruct
|
|||
private def is_method_protected!(name) # :nodoc:
|
||||
if !respond_to?(name, true)
|
||||
false
|
||||
elsif name.end_with?('!')
|
||||
elsif name.match?(/!$/)
|
||||
true
|
||||
else
|
||||
owner = method!(name).owner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue