Class: RubyUnits::Configuration
- Inherits:
-
Object
- Object
- RubyUnits::Configuration
- Defined in:
- lib/ruby_units/configuration.rb
Overview
holds actual configuration values for RubyUnits
Instance Attribute Summary collapse
-
#separator ⇒ Object
Used to separate the scalar from the unit when generating output.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
32 33 34 |
# File 'lib/ruby_units/configuration.rb', line 32 def initialize self.separator = true end |
Instance Attribute Details
#separator ⇒ Object
Used to separate the scalar from the unit when generating output. A value of ‘true` will insert a single space, and `false` will prevent adding a space to the string representation of a unit.
30 31 32 |
# File 'lib/ruby_units/configuration.rb', line 30 def separator @separator end |