Module: RuboCop::Cop::I18n::RailsI18n
- Defined in:
- lib/rubocop/cop/i18n/rails_i18n.rb,
lib/rubocop/cop/i18n/rails_i18n/decorate_string.rb,
lib/rubocop/cop/i18n/rails_i18n/decorate_string_formatting_using_interpolation.rb
Overview
The Rails I18n module contains cops used to lint and enforce the use of strings in rails applications that want to use the I18n gem.
Defined Under Namespace
Classes: DecorateString, DecorateStringFormattingUsingInterpolation
Class Method Summary collapse
Class Method Details
.supported_decorator?(decorator_name) ⇒ Boolean
18 19 20 |
# File 'lib/rubocop/cop/i18n/rails_i18n.rb', line 18 def self.supported_decorator?(decorator_name) supported_decorators.include?(decorator_name) end |
.supported_decorators ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/rubocop/cop/i18n/rails_i18n.rb', line 9 def self.supported_decorators %w[ t t! translate translate! ].freeze end |