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
Generated on Sunday, August 09 2009 at 01:43:08 PM by YARD 0.2.3.2 (ruby-1.8.7).