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