class Liquid::Filters::AtMost

Overview

Filter at_most

Limits a number to a maximum value.

{{ 4 | at_most: 5 }} => 4

{{ 4 | at_most: 3 }} => 3

Extended Modules

Defined in:

liquid/filters/at_most.cr

Class Method Summary

Class Method Detail

def self.filter(data : Any, args : Array(Any), options : Hash(String, Any)) : Any #

[View source]