module Creatable

Defined in:

creatable.cr

Class Method Summary

Class Method Detail

def self.all : Array(ContentType) #

Get all registered content types


[View source]
def self.any? : Bool #

Check if any content type is registered


[View source]
def self.find_by_directory(dir : String) : ContentType | Nil #

Find a content type by directory path


[View source]
def self.register(name : String, directory : String, description : String, &creator : Path -> Nil) #

Register a content type that can be created


[View source]