Method: I18n::Inflector::InflectionOptions#raises

Defined in:
lib/i18n-inflector/options.rb

#raisesBoolean

Note:

Local option :inflector_raises passed to the Backend::Inflector#translate overrides this setting.

This is a switch that enables extended error reporting. When it’s enabled then errors are raised in case of unknown or empty tokens present in a pattern or in options. This switch is by default set to false.

Parameters:

  • state (Boolean)

    true enables, false disables this switch

Returns:

  • (Boolean)

    state of the switch


93
94
95
# File 'lib/i18n-inflector/options.rb', line 93

def raises
  @raises
end