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
-
mutoh/gettext github.com/mutoh/gettext/blob/master/lib/gettext.rb
-
grosser/fast_gettext github.com/grosser/fast_gettext/blob/master/lib/fast_gettext/translation.rb
# 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