lib/quantify/unit/base_unit.rb
# Load an initialized Unit into the system of known units.
#
# If a block is given, the unit can be configured prior to loading, in a
# similar to way to the #configure method.
#
Load an initialized Unit into the system of known units.
If a block is given, the unit can be configured prior to loading, in a
similar to way to the #configure method.
Load an initialized Unit into the system of known units . If a block is given the unit can be configured prior to loading in a similar to way to the #configure method .
def load(&block)
        block.call(self) if block_given?
        raise Exceptions::InvalidArgumentError, "A unit with the same label: #{self.name}) already exists" if loaded?
        Quantify::Unit.load(self) if valid?
        return self
      end
def load ( & block ) block . call ( self ) if block_given? raise Exceptions :: InvalidArgumentError , "A unit with the same label: #{self.name}) already exists" if loaded? Quantify :: Unit . load ( self ) if valid? return self end
Load an initialized Unit into the system of known units.
Load an initialized Unit into the system of known units .
block
<not_specific>