Class: RubyUnits::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_units/configuration.rb

Overview

holds actual configuration values for RubyUnits

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#separatorObject

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