Skip to content

Commit ca5c27e

Browse files
Format inline code [ci-skip]
1 parent 1d604a4 commit ca5c27e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

actionview/lib/action_view/helpers/text_helper.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ module TextHelper
4141
include OutputSafetyHelper
4242

4343
# The preferred method of outputting text in your views is to use the
44-
# <%= "text" %> eRuby syntax. The regular _puts_ and _print_ methods
44+
# <tt><%= "text" %></tt> eRuby syntax. The regular +puts+ and +print+ methods
4545
# do not operate as expected in an eRuby code block. If you absolutely must
46-
# output text within a non-output code block (i.e., <% %>), you can use the concat method.
46+
# output text within a non-output code block (i.e., <tt><% %></tt>), you
47+
# can use the +concat+ method.
4748
#
4849
# <%
4950
# concat "hello"
@@ -110,7 +111,7 @@ def truncate(text, options = {}, &block)
110111
# Highlights one or more +phrases+ everywhere in +text+ by inserting it into
111112
# a <tt>:highlighter</tt> string. The highlighter can be specialized by passing <tt>:highlighter</tt>
112113
# as a single-quoted string with <tt>\1</tt> where the phrase is to be inserted (defaults to
113-
# <tt><mark>\1</mark></tt>) or passing a block that receives each matched term. By default +text+
114+
# <tt>"<mark>\1</mark>"</tt>) or passing a block that receives each matched term. By default +text+
114115
# is sanitized to prevent possible XSS attacks. If the input is trustworthy, passing false
115116
# for <tt>:sanitize</tt> will turn sanitizing off.
116117
#
@@ -215,7 +216,7 @@ def excerpt(text, phrase, options = {})
215216
# Attempts to pluralize the +singular+ word unless +count+ is 1. If
216217
# +plural+ is supplied, it will use that when count is > 1, otherwise
217218
# it will use the Inflector to determine the plural form for the given locale,
218-
# which defaults to I18n.locale
219+
# which defaults to +I18n.locale+.
219220
#
220221
# The word will be pluralized using rules defined for the locale
221222
# (you must define your own inflection rules for languages other than English).
@@ -336,7 +337,7 @@ def simple_format(text, html_options = {}, options = {})
336337
end
337338
end
338339

339-
# Creates a Cycle object whose _to_s_ method cycles through elements of an
340+
# Creates a Cycle object whose +to_s+ method cycles through elements of an
340341
# array every time it is called. This can be used for example, to alternate
341342
# classes for table rows. You can use named cycles to allow nesting in loops.
342343
# Passing a Hash as the last parameter with a <tt>:name</tt> key will create a

0 commit comments

Comments
 (0)