From 55dc807bb8fa6ad12f9c9a76538d8db4dc6a6fd6 Mon Sep 17 00:00:00 2001 From: Dave Copeland Date: Mon, 19 Aug 2024 09:03:09 -0400 Subject: [PATCH] fix issues with RDoc generation --- lib/i18n.rb | 6 +++--- lib/i18n/backend/simple.rb | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/i18n.rb b/lib/i18n.rb index 2980f025..06f7bfa6 100644 --- a/lib/i18n.rb +++ b/lib/i18n.rb @@ -161,7 +161,7 @@ def eager_load! # or default if no translations for :foo and :bar were found. # I18n.t :foo, :default => [:bar, 'default'] # - # *BULK LOOKUP* + # BULK LOOKUP # # This returns an array with the translations for :foo and :bar. # I18n.t [:foo, :bar] @@ -180,7 +180,7 @@ def eager_load! # E.g. assuming the key :salutation resolves to: # lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" } # - # Then I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith". + # Then I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith". # # Note that the string returned by lambda will go through string interpolation too, # so the following lambda would give the same result: @@ -192,7 +192,7 @@ def eager_load! # always return the same translations/values per unique combination of argument # values. # - # *Ruby 2.7+ keyword arguments warning* + # Ruby 2.7+ keyword arguments warning # # This method uses keyword arguments. # There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0 diff --git a/lib/i18n/backend/simple.rb b/lib/i18n/backend/simple.rb index 7caa7dd1..2cac2452 100644 --- a/lib/i18n/backend/simple.rb +++ b/lib/i18n/backend/simple.rb @@ -10,14 +10,14 @@ module Backend # The implementation is provided by a Implementation module allowing to easily # extend Simple backend's behavior by including modules. E.g.: # - # module I18n::Backend::Pluralization - # def pluralize(*args) - # # extended pluralization logic - # super - # end - # end - # - # I18n::Backend::Simple.include(I18n::Backend::Pluralization) + # module I18n::Backend::Pluralization + # def pluralize(*args) + # # extended pluralization logic + # super + # end + # end + # + # I18n::Backend::Simple.include(I18n::Backend::Pluralization) class Simple module Implementation include Base