lib/typographic-unit/gou.rb
def scaled_point
      val = case @value
            when :first, 0
              42.american_pt
            when 1
              27.5.american_pt
            when 2
              21.american_pt
            when 3
              15.75.american_pt
            when 4
              13.75.american_pt
            when 5
              10.5.american_pt
            when 6
              7.875.american_pt
            when 7
              5.25.american_pt
            when 8
              3.9375.american_pt
            end
      val.kind_of?(ScaledPoint) ? val : val.scaled_point
    end
# Convert the value into american point.
Convert the value into american point.
Convert the value into american point .
def scaled_point
      val = case @value
            when :first, 0
              42.american_pt
            when 1
              27.5.american_pt
            when 2
              21.american_pt
            when 3
              15.75.american_pt
            when 4
              13.75.american_pt
            when 5
              10.5.american_pt
            when 6
              7.875.american_pt
            when 7
              5.25.american_pt
            when 8
              3.9375.american_pt
            end
      val.kind_of?(ScaledPoint) ? val : val.scaled_point
    end
def scaled_point val = case @value when :first , 0 42 . american_pt when 1 27.5 . american_pt when 2 21 . american_pt when 3 15.75 . american_pt when 4 13.75 . american_pt when 5 10.5 . american_pt when 6 7.875 . american_pt when 7 5.25 . american_pt when 8 3.9375 . american_pt end val . kind_of? ( ScaledPoint ) ? val : val . scaled_point end
Convert the value into american point.
Convert the value into american point .