Module: Nanoc3::DataSources::FilesystemCommon
The Nanoc3::DataSources::FilesystemCommon module provides code snippet-loading and rule-loading methods that are used by both the filesystem and the filesystem_combined data sources.
Public Visibility
Public Instance Method Summary
| #code_snippets |
|---|
Public Instance Method Details
code_snippets
public
code_snippets
[View source]
10 11 12 13 14 15 16 17 18 |
# File 'lib/nanoc3/data_sources/filesystem_common.rb', line 10 def code_snippets Dir['lib/**/*.rb'].sort.map do |filename| Nanoc3::CodeSnippet.new( File.read(filename), filename.sub(/^lib\//, ''), File.stat(filename).mtime ) end end |