Method: Jekyll::Collection#method_missing

Defined in:
lib/jekyll/collection.rb

#method_missing(method, *args, &blck) ⇒ Object

Override of method_missing to check in @data for the key.



33
34
35
36
37
38
39
40
41
# File 'lib/jekyll/collection.rb', line 33

def method_missing(method, *args, &blck)
  if docs.respond_to?(method.to_sym)
    Jekyll.logger.warn "Deprecation:", "#{label}.#{method} should be changed to #{label}.docs.#{method}."
    Jekyll.logger.warn "", "Called by #{caller.first}."
    docs.public_send(method.to_sym, *args, &blck)
  else
    super
  end
end