class InoxConverter::Area

Public Instance Methods

initDictionary() click to toggle source

base unit: square meter

# File lib/inox_converter/area.rb, line 5
def initDictionary
  @dictionary = Hash.new
  @dictionary = {
    "square kilometre" => 10**6,
    "square kilometer" => 10**6,
    "km2" => 10**6,
    "square metre" => 1,
    "square meter" => 1,
    "m2" => 1,
            "square centimeter"=> 10**-4,
    "square centimetre"=> 10**-4,
    "cm2"=> 10**-4,
    "square mile" => 2.59**6,
    "mi2" => 2.59**6,
    "square yard" => 0.836127,
    "yd2" => 0.836127,
    "square foot" => 0.09290,
    "ft2" => 0.09290,
    "square inch" => 0.00064516,
    "in2" => 0.00064516,
    "hectare" => 10000,
    "ha" => 10000,
    "acre" => 4046.86,
    "ac" => 4046.86
  }
end