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. set to nil to prevent adding a space to the string representation of a unit separators other than ‘ ’ and ” may work, but you may encounter problems
30 31 32 |
# File 'lib/ruby_units/configuration.rb', line 30 def separator @separator end |