File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
activesupport/lib/active_support/core_ext/module Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ def #{sym}=(obj)
48
48
#
49
49
# module AppConfiguration
50
50
# mattr_accessor :google_api_key
51
- # self.google_api_key = "123456789"
52
51
#
53
- # mattr_accessor :paypal_url
54
- # self.paypal_url = "www.sandbox.paypal.com"
52
+ # self.google_api_key = "123456789"
55
53
# end
56
54
#
55
+ # AppConfiguration.google_api_key # => "123456789"
57
56
# AppConfiguration.google_api_key = "overriding the api key!"
57
+ # AppConfiguration.google_api_key # => "overriding the api key!"
58
58
#
59
- # To opt out of the instance writer method, pass : instance_writer => false.
60
- # To opt out of the instance reader method, pass : instance_reader => false.
61
- # To opt out of both instance methods, pass : instance_accessor => false.
59
+ # To opt out of the instance writer method, pass instance_writer: false.
60
+ # To opt out of the instance reader method, pass instance_reader: false.
61
+ # To opt out of both instance methods, pass instance_accessor: false.
62
62
def mattr_accessor ( *syms )
63
63
mattr_reader ( *syms )
64
64
mattr_writer ( *syms )
You can’t perform that action at this time.
0 commit comments