Class: I18nOnSteroids::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_on_steroids/translation_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_modeObject

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_precisionObject

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_lengthObject

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_valueObject

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_pipeObject

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_modeObject

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