summaryrefslogtreecommitdiff
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <[email protected]>2020-09-14 14:06:49 -0400
committerMarc-AndrĂ© Lafortune <[email protected]>2020-09-14 16:10:37 -0400
commit125605abd949b23a8a95e1cc95f7d435efc17290 (patch)
tree6d8a1da327ac223f83074e10bc89a67f252911bb /lib/ostruct.rb
parent606c009ce24bd8e9e07ecb8f920a77c005062ff5 (diff)
[ruby/ostruct] method_missing is private
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3541
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 9b44d4a88a..f403f63bdb 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -212,7 +212,7 @@ class OpenStruct
super
end
- def method_missing(mid, *args) # :nodoc:
+ private def method_missing(mid, *args) # :nodoc:
len = args.length
if mname = mid[/.*(?==\z)/m]
if len != 1