Module: Landable::Liquid::DefaultFilter

Defined in:
lib/landable/liquid/filters.rb

Instance Method Summary collapse

Instance Method Details

#default(input, default_output = nil) ⇒ Object



5
6
7
# File 'lib/landable/liquid/filters.rb', line 5

def default(input, default_output=nil)
  input.presence ? input : default_output
end