class Utils

Defined in:

utils.cr

Class Method Summary

Class Method Detail

def self.get_segments(segments : Hash) #

extract those parts from the route which begin with semicolon


[View source]
def self.has_safe_segments(segments : Hash) #

check sanity of segments


[View source]
def self.load_yaml(config : String) #

[View source]
def self.normalize_command(command : String, segments : Array(String), values : Hash) #

replace segments in command with their values from the matching route


[View source]