From 748725e9ce081f6517c68d8f74d254e2079d0d79 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 25 Dec 2011 11:11:23 -0800 Subject: removes the compatibility method Module#method_names --- railties/guides/source/active_support_core_extensions.textile | 6 ------ 1 file changed, 6 deletions(-) (limited to 'railties/guides/source') diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index f10830e0c6..1c82a2941f 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -935,12 +935,6 @@ In the previous example the macro generates +avatar_size+ rather than +size+. NOTE: Defined in +active_support/core_ext/module/delegation.rb+ -h4. Method Names - -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+ - h4. Redefining Methods There are cases where you need to define a method with +define_method+, but don't know whether a method with that name already exists. If it does, a warning is issued if they are enabled. No big deal, but not clean either. -- cgit v1.2.3