Permalink
Browse files

Removed some older versions of unit specifications

  • Loading branch information...
1 parent e0e3dd6 commit ce40ebb7a17ef1b3af7c17975124c2e3178a8bbb @bhuga committed Jan 5, 2010
@@ -1,9 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Electric_current
- class Current < Unit
- reference :milliampere, :milliamperes, :milliamp, :milliamps
- end
- end
-end
@@ -1,31 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Mebibyte
- # @see http://en.wikipedia.org/wiki/Units_of_information
- class Information < Unit
- reference :bit, :bits
-
- add_unit :nibble, 4, :nibbles, :nybble, :nybbles
- add_unit :byte, 8, :bytes
-
- add_unit :kilobyte, 8 * 1000, :kb, :kilobytes
- add_unit :megabyte, 8 * (1000**2), :mb, :megabytes
- add_unit :gigabyte, 8 * (1000**3), :gb, :gigabytes
- add_unit :terabyte, 8 * (1000**4), :tb, :terabytes
- add_unit :petabyte, 8 * (1000**5), :pb, :petabytes
- add_unit :exabyte, 8 * (1000**6), :exabytes
- add_unit :zettabyte, 8 * (1000**7), :zettabytes
- add_unit :yottabyte, 8 * (1000**8), :yottabytes
-
- add_unit :kibibyte, 8 * 1024, :kibibytes, :KiB, :kib
- add_unit :mebibyte, 8 * (1024**2), :mebibytes, :MiB, :mib
- add_unit :gibibyte, 8 * (1024**3), :gibibytes, :GiB, :gib
- add_unit :tebibyte, 8 * (1024**4), :tebibytes, :TiB, :tib
- add_unit :pebibyte, 8 * (1024**5), :pebibytes, :PiB, :pib
- add_unit :exbibyte, 8 * (1024**6), :exbibytes, :EiB, :eib
- add_unit :zebibyte, 8 * (1024**7), :zebibytes, :ZiB, :zib
- add_unit :yobibyte, 8 * (1024**8), :yobibytes, :YiB, :yib
- end
- end
-end
@@ -1,9 +0,0 @@
-class Quantity
- class Unit
- # A unit of Length. The Length reference unit is millimeters.
- # @see http://en.wikipedia.org/wiki/Length
- class Length < Unit
- reference :millimeter, :millimeters, :mm
- end
- end
-end
@@ -1,9 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Luminous_intensity
- class Luminosity < Unit
- reference :millicandela, :millicandelas, :millcd, :millicds
- end
- end
-end
@@ -1,9 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Mass
- class Mass < Unit
- reference :milligram, :mg, :milligrams
- end
- end
-end
@@ -1,9 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Amount_of_substance
- class Substance < Unit
- reference :millimole, :millimoles, :millimol, :millimols
- end
- end
-end
@@ -1,9 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Thermodynamic_temperature
- class Temperature < Unit
- reference :millikelvin, :millikelvins
- end
- end
-end
@@ -1,12 +0,0 @@
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Time
- class Time < Unit
- reference :millisecond, :ms, :milliseconds
- add_unit :minute, 1000*60, :minutes, :min
- add_unit :hour, 1000*60*60, :hours
- add_unit :day, 1000*60*60*24, :days
- end
- end
-end
@@ -1,10 +0,0 @@
-require 'quantity/unit/derived'
-class Quantity
- class Unit
- ##
- # @see http://en.wikipedia.org/wiki/Volume
- class Volume < Derived
- derived_from "millimeter^3", :milliliter, :ml, :milliliters, :millilitre, :millilitres, :cc, :ccs
- end
- end
-end

0 comments on commit ce40ebb

Please sign in to comment.