module

Snippet::FileSnippet

Creates a new Snippet instance from file.

Example:

Snippet::File::Snippet.read("crystal/def")


Crystal define methods – [crystal/def]:

def {{name}} {{content}} end


Instance methods

read(path : Path)
Source
read(path : String)
Source