class Mint::Workspace

Overview

A workspace represents a mint project where the root is the directory containing the mint.json file.

The workspace provides:

Defined in:

workspace.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.current : Workspace #

[View source]
def self.from_file(path : String) : Workspace #

[View source]
def self.new(root : String) #

[View source]

Class Method Detail

def self.[](path) #

[View source]
def self.root_from_file(path : String) : String #

[View source]
def self.workspaces #

[View source]

Instance Method Detail

def [](file) #

[View source]
def []?(file) #

[View source]
def ast #

[View source]
def cache : Hash(String, Ast) #

[View source]
def error : Error | Nil #

[View source]
def files #

[View source]
def files_pattern : Array(String) #

[View source]
def format(file) #

[View source]
def format=(format : Bool) #

[View source]
def format? : Bool #

[View source]
def formatter : Formatter #

[View source]
def initialize_cache(&) #

[View source]
def json : MintJson #

[View source]
def on(event, &handler : ChangeProc) #

[View source]
def packages : Array(Workspace) #

[View source]
def root : String #

[View source]
def static_pattern : Array(String) #

[View source]
def type_checker : TypeChecker #

[View source]
def update(contents, file) #

[View source]
def update_cache #

[View source]
def watch #

[View source]