module RuboCop::Cop::I18n::RailsI18n
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.
Public Class Methods
supported_decorator?(decorator_name)
click to toggle source
# File lib/rubocop/cop/i18n/rails_i18n.rb, line 18 def self.supported_decorator?(decorator_name) supported_decorators.include?(decorator_name) end
supported_decorators()
click to toggle source
# File lib/rubocop/cop/i18n/rails_i18n.rb, line 9 def self.supported_decorators %w[ t t! translate translate! ].freeze end