module Jekyll::Algolia::Utils
def self.instance_of?(input, classname)
input - the variable to test
Public: Check if a variable is an instance of a specific class
def self.instance_of?(input, classname) return input.instance_of? Object.const_get(classname) rescue StandardError # The class might not even exist return false end