Sha256: 5cf4645f234cbc989afe4a36b4e8b1c72e422a72a4aec3c3d5ed89838cdbdb7c

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

module Rakyll
  module Compiler
    class Create
      include Apply
      include SetFilename
      attr_reader :url

      def initialize(source_filename)
        @source_filename = source_filename
        set_filename(source_filename)
      end

      def load_all(pattern)
        Dir.glob(pattern).map do |filename|
          Match.new filename
        end
      end

      def save
        File.write(@filename, @body)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rakyll-0.1.0 lib/rakyll/compiler/create.rb