Sha256: adb0aa733752a83b2be56de2132ef66d77353c5f6b99dde23bc4bf024813c5c2
Contents?: true
Size: 517 Bytes
Versions: 10
Compression:
Stored size: 517 Bytes
Contents
# encoding: utf-8 module Nanoc3::DataSources # 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. module FilesystemCommon 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 end end
Version data entries
10 entries across 10 versions & 1 rubygems