Class: Humanize::Configuration
- Inherits:
-
Object
- Object
- Humanize::Configuration
- Defined in:
- lib/humanize/module.rb
Instance Attribute Summary collapse
-
#decimals_as ⇒ Object
Returns the value of attribute decimals_as.
-
#default_locale ⇒ Object
Returns the value of attribute default_locale.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
117 118 119 120 |
# File 'lib/humanize/module.rb', line 117 def initialize @default_locale = :en @decimals_as = :digits end |
Instance Attribute Details
#decimals_as ⇒ Object
Returns the value of attribute decimals_as.
115 116 117 |
# File 'lib/humanize/module.rb', line 115 def decimals_as @decimals_as end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
115 116 117 |
# File 'lib/humanize/module.rb', line 115 def default_locale @default_locale end |