# File lib/haml/util.rb, line 119
    def restrict(value, range)
      [[value, range.first].max, range.last].min
    end