Class | Nanoc3::CodeSnippet |
In: |
lib/nanoc3/base/code_snippet.rb
|
Parent: | Object |
Nanoc3::CodeSnippet represent a piece of custom code of a nanoc site. It contains the textual source code as well as a mtime, which is used to speed up site compilation.
data | [R] |
A string containing the actual code in this code snippet.
@return [String] |
filename | [R] |
The filename corresponding to this code snippet.
@return [String] |
mtime | [R] |
The time where this code snippet was last modified.
@return [Time] |
site | [RW] |
The {Nanoc3::Site} this code snippet belongs to.
@return [Nanoc3::Site] |