Class: Humanize::Configuration
- Inherits:
-
Object
- Object
- Humanize::Configuration
- Defined in:
- lib/humanize.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.
115 116 117 118 |
# File 'lib/humanize.rb', line 115 def initialize @default_locale = :en @decimals_as = :digits end |
Instance Attribute Details
#decimals_as ⇒ Object
Returns the value of attribute decimals_as.
113 114 115 |
# File 'lib/humanize.rb', line 113 def decimals_as @decimals_as end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
113 114 115 |
# File 'lib/humanize.rb', line 113 def default_locale @default_locale end |