Class: I18nOnSteroids::Configuration
- Inherits:
-
Object
- Object
- I18nOnSteroids::Configuration
- Defined in:
- lib/i18n_on_steroids/translation_helper.rb
Instance Attribute Summary collapse
-
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
-
#default_round_precision ⇒ Object
Returns the value of attribute default_round_precision.
-
#default_truncate_length ⇒ Object
Returns the value of attribute default_truncate_length.
-
#fallback_on_missing_value ⇒ Object
Returns the value of attribute fallback_on_missing_value.
-
#raise_on_unknown_pipe ⇒ Object
Returns the value of attribute raise_on_unknown_pipe.
-
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 12 def initialize @default_truncate_length = 30 @default_round_precision = 2 @fallback_on_missing_value = false @raise_on_unknown_pipe = false @debug_mode = false @strict_mode = false end |
Instance Attribute Details
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
5 6 7 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 5 def debug_mode @debug_mode end |
#default_round_precision ⇒ Object
Returns the value of attribute default_round_precision.
5 6 7 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 5 def default_round_precision @default_round_precision end |
#default_truncate_length ⇒ Object
Returns the value of attribute default_truncate_length.
5 6 7 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 5 def default_truncate_length @default_truncate_length end |
#fallback_on_missing_value ⇒ Object
Returns the value of attribute fallback_on_missing_value.
5 6 7 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 5 def fallback_on_missing_value @fallback_on_missing_value end |
#raise_on_unknown_pipe ⇒ Object
Returns the value of attribute raise_on_unknown_pipe.
5 6 7 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 5 def raise_on_unknown_pipe @raise_on_unknown_pipe end |
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
5 6 7 |
# File 'lib/i18n_on_steroids/translation_helper.rb', line 5 def strict_mode @strict_mode end |