module Creatable
Defined in:
creatable.crClass Method Summary
-
.all : Array(ContentType)
Get all registered content types
-
.any? : Bool
Check if any content type is registered
-
.find_by_directory(dir : String) : ContentType | Nil
Find a content type by directory path
-
.register(name : String, directory : String, description : String, &creator : Path -> Nil)
Register a content type that can be created
Class Method Detail
def self.find_by_directory(dir : String) : ContentType | Nil
#
Find a content type by directory path
def self.register(name : String, directory : String, description : String, &creator : Path -> Nil)
#
Register a content type that can be created