Module: CML::LiquidFilters

Defined in:
lib/cml/liquid_filters.rb

Instance Method Summary collapse

Instance Method Details

#random(input) ⇒ Object



7
8
9
# File 'lib/cml/liquid_filters.rb', line 7

def random(input)
  rand(input.to_i)
end

#to_json(input) ⇒ Object



3
4
5
# File 'lib/cml/liquid_filters.rb', line 3

def to_json(input)
  input.to_json
end