summaryrefslogtreecommitdiff
path: root/spec/ruby/language/fixtures/send.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 02:17:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 02:21:37 +0900
commite6378cdcd8246697be652b74442f9c07503e0ba6 (patch)
treec0b0069388f2e8438b2dfa735ef5d232deb58411 /spec/ruby/language/fixtures/send.rb
parentd583df525922ca14ecfab7a39f0c617eb86bc804 (diff)
Allow calling a private accessor with `self.`
[Feature #11297] [Feature #16123]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2474
Diffstat (limited to 'spec/ruby/language/fixtures/send.rb')
-rw-r--r--spec/ruby/language/fixtures/send.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/language/fixtures/send.rb b/spec/ruby/language/fixtures/send.rb
index c3013616b2..918241e171 100644
--- a/spec/ruby/language/fixtures/send.rb
+++ b/spec/ruby/language/fixtures/send.rb
@@ -53,8 +53,9 @@ module LangSendSpecs
end
class PrivateGetter
- attr_reader :foo
+ attr_accessor :foo
private :foo
+ private :foo=
def call_self_foo
self.foo