Guest User

Untitled

a guest
Apr 19th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. # populate code snipppets from _factory/lib
  2. code_snippets = Dir['_factory/lib/**/*.rb'].sort.map do |filename|
  3. Nanoc::CodeSnippet.new(
  4. File.read(filename),
  5. filename
  6. )
  7. end
  8. code_snippets.each { |cs| cs.load }
Advertisement
Add Comment
Please, Sign In to add comment