lib/typographic-unit/unit.rb
# Define a unit. This method is used in concrete unit classes.
#
# @param short [Symbol]
#   short name for the unit
# @param base [Unit]
#   base unit class
# @param size [Rational]
#   unit size
# @return [void]
Define a unit. This method is used in concrete unit classes.
Define a unit . This method is used in concrete unit classes .
def unit(short, base, size)
        @short = short
        @base = base
        @size = size
        register(short, self)
      end
def unit ( short , base , size ) @short = short @base = base @size = size register ( short , self ) end
Define a unit.
Define a unit .
None
void
short
short name for the unit
short name for the unit
base
base unit class
base unit class
size
None