Sha256: ad5033a419b2e4f312ac8e788bae9d950acfedf1b047e9b1e68ce603595670b5
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
module Rakyll class Route def initialize @compilers = [] end def match(pattern, &block) Dir.glob(pattern).each do |source_filename| compiler = Rakyll::Compiler::Match.new source_filename compiler.instance_eval &block @compilers.push compiler end end def copy(pattern) Dir.glob(pattern).each do |source_filename| compiler = Rakyll::Compiler::Copy.new source_filename @compilers.push compiler end end def create(filename, &block) compiler = Rakyll::Compiler::Create.new filename compiler.instance_eval &block @compilers.push compiler end def save @compilers.each do |compiler| compiler.save end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rakyll-0.1.0 | lib/rakyll/route.rb |