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.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/jekyll/collection.rb', line 35 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(0..0)}." docs.public_send(method.to_sym, *args, &blck) else super end end |