diff options
author | Xavier Noria <fxn@hashref.com> | 2011-12-25 11:02:42 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-12-25 11:11:49 -0800 |
commit | 40bda760675f7cd05d44c66c6daf1f95161a15de (patch) | |
tree | e6c52868507108545ccaa7a813f8bc90f72ee231 /railties/guides/source/active_support_core_extensions.textile | |
parent | 4e1999d20e4135d586135bbd37d4e2a86ca8975b (diff) | |
download | rails-40bda760675f7cd05d44c66c6daf1f95161a15de.tar.gz rails-40bda760675f7cd05d44c66c6daf1f95161a15de.tar.bz2 rails-40bda760675f7cd05d44c66c6daf1f95161a15de.zip |
removes the compatibility method Module#instance_method_names
Diffstat (limited to 'railties/guides/source/active_support_core_extensions.textile')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 7cd241f412..f10830e0c6 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -937,13 +937,7 @@ NOTE: Defined in +active_support/core_ext/module/delegation.rb+ h4. Method Names -The builtin methods +instance_methods+ and +methods+ return method names as strings or symbols depending on the Ruby version. Active Support defines +instance_method_names+ and +method_names+ to be equivalent to them, respectively, but always getting strings back. - -For example, +ActionView::Helpers::FormBuilder+ knows this array difference is going to work no matter the Ruby version: - -<ruby> -self.field_helpers = (FormHelper.instance_method_names - ['form_for']) -</ruby> +The builtin method +methods+ returns method names as strings or symbols depending on the Ruby version. Active Support defines +method_names+ to be equivalent, but always getting strings back. NOTE: Defined in +active_support/core_ext/module/method_names.rb+ |