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.
74 75 76 77 |
# File 'lib/humanize.rb', line 74 def initialize @default_locale = :en @decimals_as = :digits end |
Instance Attribute Details
#decimals_as ⇒ Object
Returns the value of attribute decimals_as.
72 73 74 |
# File 'lib/humanize.rb', line 72 def decimals_as @decimals_as end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
72 73 74 |
# File 'lib/humanize.rb', line 72 def default_locale @default_locale end |