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) #

[View source]

Instance Method Detail

def data : String #

[View source]
def mimetype : String #

[View source]
def namespace : String #

[View source]
def path : Path #

[View source]