module

MJ::CutStore

Constants

SLUG = /\A[a-z0-9]+(-[a-z0-9]+)*\z/

What POST /cuts makes of a name: lowercase letters and digits, joined by single hyphens. Nothing else is a cut, so no slug can name a path outside cuts_dir.

Class methods

create_cut(slug : String, name : String) : Cut
Source
cut_path(slug : String) : String
Source
cuts_dir
Source
get_cut(slug : String) : Cut | Nil
Source
get_cut_id(slug : String) : Int64 | Nil
Source
list_cuts
Source
valid_slug?(slug : String) : Bool
Source

Nested types