struct Datapack::Resource

Overview

A Resource represents a single file. It is a simple structure, composed of four fields.

Defined in:

datapack.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path, data : String, mimetype : String = nil) #

Instance Method Detail

def data : String #

def mimetype : String #

def namespace : String #

def path : Path #