Class: Locomotive::Steam::Liquid::Drops::ContentTypes

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/locomotive/steam/liquid/drops/content_types.rb

Instance Method Summary collapse

Instance Method Details

#liquid_method_missing(meth) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/locomotive/steam/liquid/drops/content_types.rb', line 7

def liquid_method_missing(meth)
  if content_type = fetch_content_type(meth.to_s)
    ContentEntryCollection.new(content_type)
  else
    nil
  end
end