summaryrefslogtreecommitdiff
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-11-04 16:09:51 -0500
committerMarc-André Lafortune <github@marc-andre.ca>2020-11-04 17:52:03 -0500
commit015b0238204616d4c0612459ef91411fa79a9eb5 (patch)
treecda494ace12280ebbc505952c70c5d3c5068ed6d /lib/ostruct.rb
parent6f24be856502aba8fa984e704c1e81aa12d96fc9 (diff)
[ruby/ostruct] Restore `ostruct` doc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3736
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 823c829d54..45ccb54925 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -36,15 +36,15 @@
# Hash keys with spaces or characters that could normally not be used for
# method calls (e.g. <code>()[]*</code>) will not be immediately available
# on the OpenStruct object as a method for retrieval or assignment, but can
-# still be reached through the Object#__send__ method or using [].
+# still be reached through the Object#send method or using [].
#
# measurements = OpenStruct.new("length (in inches)" => 24)
# measurements[:"length (in inches)"] # => 24
-# measurements.__send__("length (in inches)") # => 24
+# measurements.send("length (in inches)") # => 24
#
# message = OpenStruct.new(:queued? => true)
# message.queued? # => true
-# message.__send__("queued?=", false)
+# message.send("queued?=", false)
# message.queued? # => false
#
# Removing the presence of an attribute requires the execution of the