aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/api_documentation_guidelines.textile
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-11-10 19:12:10 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-10 19:12:10 -0200
commit7a2be37592a13aaf557619336a54da9092950b18 (patch)
tree8daa2a509c927ad0a1150e6e17a0c31c7e53108c /railties/guides/source/api_documentation_guidelines.textile
parentc20838596bcb40bf1590f27f6ba735d0a5f4fe8f (diff)
downloadrails-7a2be37592a13aaf557619336a54da9092950b18.tar.gz
rails-7a2be37592a13aaf557619336a54da9092950b18.tar.bz2
rails-7a2be37592a13aaf557619336a54da9092950b18.zip
Remove copy_instance_variables_from from guides
Diffstat (limited to 'railties/guides/source/api_documentation_guidelines.textile')
-rw-r--r--railties/guides/source/api_documentation_guidelines.textile12
1 files changed, 0 insertions, 12 deletions
diff --git a/railties/guides/source/api_documentation_guidelines.textile b/railties/guides/source/api_documentation_guidelines.textile
index 900b3fb5d5..523fbd8a77 100644
--- a/railties/guides/source/api_documentation_guidelines.textile
+++ b/railties/guides/source/api_documentation_guidelines.textile
@@ -115,18 +115,6 @@ Use fixed-width fonts for:
* method parameters
* file names
-<ruby>
-# Copies the instance variables of +object+ into +self+.
-#
-# Instance variable names in the +exclude+ array are ignored. If +object+
-# responds to <tt>protected_instance_variables</tt> the ones returned are
-# also ignored. For example, Rails controllers implement that method.
-# ...
-def copy_instance_variables_from(object, exclude = [])
- ...
-end
-</ruby>
-
WARNING: Using a pair of +&#43;...&#43;+ for fixed-width font only works with *words*; that is: anything matching <tt>\A\w&#43;\z</tt>. For anything else use +&lt;tt&gt;...&lt;/tt&gt;+, notably symbols, setters, inline snippets, etc:
h4. Regular Font