module Sass::Script::Functions

def numeric_transformation(value)

It yields a number to a block to perform the operation and return a number
another numeric value with the same units.
This method implements the pattern of transforming a numeric value into
def numeric_transformation(value)
  assert_type value, :Number
  Sass::Script::Number.new(yield(value.value), value.numerator_units, value.denominator_units)
end