From f0faa8641649011ceca155894b446ad075e75d7e Mon Sep 17 00:00:00 2001 From: Yoshiyuki Hirano Date: Thu, 5 Apr 2018 04:39:15 +0900 Subject: [ci skip] Add :private option to delegation doc --- activesupport/lib/active_support/core_ext/module/delegation.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/module') diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index ec3497173f..7f42f44efb 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -22,8 +22,9 @@ class Module # ==== Options # * :to - Specifies the target object # * :prefix - Prefixes the new method with the target name or a custom prefix - # * :allow_nil - if set to true, prevents a +Module::DelegationError+ + # * :allow_nil - If set to true, prevents a +Module::DelegationError+ # from being raised + # * :private - If set to true, changes method visibility to private # # The macro receives one or more method names (specified as symbols or # strings) and the name of the target object via the :to option -- cgit v1.2.3