aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/delegation.rb
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2018-04-05 04:39:15 +0900
committerYoshiyuki Hirano <yhirano@me.com>2018-04-05 04:39:15 +0900
commitf0faa8641649011ceca155894b446ad075e75d7e (patch)
treefc831471964b9dad3443f82d1af5200be6e7bbd7 /activesupport/lib/active_support/core_ext/module/delegation.rb
parentf815e773412f1064492507d76a9a011e6dde6042 (diff)
downloadrails-f0faa8641649011ceca155894b446ad075e75d7e.tar.gz
rails-f0faa8641649011ceca155894b446ad075e75d7e.tar.bz2
rails-f0faa8641649011ceca155894b446ad075e75d7e.zip
[ci skip] Add :private option to delegation doc
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/delegation.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/module/delegation.rb3
1 files changed, 2 insertions, 1 deletions
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
# * <tt>:to</tt> - Specifies the target object
# * <tt>:prefix</tt> - Prefixes the new method with the target name or a custom prefix
- # * <tt>:allow_nil</tt> - if set to true, prevents a +Module::DelegationError+
+ # * <tt>:allow_nil</tt> - If set to true, prevents a +Module::DelegationError+
# from being raised
+ # * <tt>:private</tt> - 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 <tt>:to</tt> option