module RuboCop::Cop::I18n::GetText

Public Class Methods

supported_decorator?(decorator_name) click to toggle source
# File lib/rubocop/cop/i18n/gettext.rb, line 39
def self.supported_decorator?(decorator_name)
  supported_decorators.include?(decorator_name)
end
supported_decorators() click to toggle source

Supports decorators from

# File lib/rubocop/cop/i18n/gettext.rb, line 14
def self.supported_decorators
  %w[
    _
    n_
    np_
    ns_
    N_
    Nn_
    D_
    Dn_
    Ds_
    Dns_
    d_
    dn_
    ds_
    dns_
    p_
    s_
  ]
end
supported_method?(method_name) click to toggle source
# File lib/rubocop/cop/i18n/gettext.rb, line 35
def self.supported_method?(method_name)
  supported_methods.include?(method_name)
end
supported_methods() click to toggle source
# File lib/rubocop/cop/i18n/gettext.rb, line 7
def self.supported_methods
  %w[raise fail]
end