module Asciidoctor::Helpers

def resolve_class object

a String that resolves to a Class; otherwise, nil
Returns a Class if the specified object is a Class (but not a Module) or

object - The Object to resolve as a Class

Internal: Resolve the specified object as a Class
def resolve_class object
  ::Class === object ? object : (::String === object ? (class_for_name object) : nil)
end