Skip to content

Commit 55dc807

Browse files
committed
fix issues with RDoc generation
1 parent 55c7750 commit 55dc807

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/i18n.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def eager_load!
161161
# or <tt>default</tt> if no translations for <tt>:foo</tt> and <tt>:bar</tt> were found.
162162
# I18n.t :foo, :default => [:bar, 'default']
163163
#
164-
# *BULK LOOKUP*
164+
# <b>BULK LOOKUP</b>
165165
#
166166
# This returns an array with the translations for <tt>:foo</tt> and <tt>:bar</tt>.
167167
# I18n.t [:foo, :bar]
@@ -180,7 +180,7 @@ def eager_load!
180180
# E.g. assuming the key <tt>:salutation</tt> resolves to:
181181
# lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
182182
#
183-
# Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
183+
# Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith')</tt> will result in "Mrs. Smith".
184184
#
185185
# Note that the string returned by lambda will go through string interpolation too,
186186
# so the following lambda would give the same result:
@@ -192,7 +192,7 @@ def eager_load!
192192
# always return the same translations/values per unique combination of argument
193193
# values.
194194
#
195-
# *Ruby 2.7+ keyword arguments warning*
195+
# <b>Ruby 2.7+ keyword arguments warning</b>
196196
#
197197
# This method uses keyword arguments.
198198
# There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0

lib/i18n/backend/simple.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ module Backend
1010
# The implementation is provided by a Implementation module allowing to easily
1111
# extend Simple backend's behavior by including modules. E.g.:
1212
#
13-
# module I18n::Backend::Pluralization
14-
# def pluralize(*args)
15-
# # extended pluralization logic
16-
# super
17-
# end
18-
# end
19-
#
20-
# I18n::Backend::Simple.include(I18n::Backend::Pluralization)
13+
# module I18n::Backend::Pluralization
14+
# def pluralize(*args)
15+
# # extended pluralization logic
16+
# super
17+
# end
18+
# end
19+
#
20+
# I18n::Backend::Simple.include(I18n::Backend::Pluralization)
2121
class Simple
2222
module Implementation
2323
include Base

0 commit comments

Comments
 (0)