Sha256: e6c90668503c2fb27bf567d6490da09c61ad098ba9f88868d679405c8b303d18

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

module RenderingEngine
  class Provider
    def initialize(file_repo, base_opts = {})
      @file_repo = file_repo
      @base_opts = base_opts
    end

    def get(file_path, opts = {})
      content_opts = base_opts.merge(opts)
      Content.new(file_repo, file_path, content_opts)
    end

    private

    attr_reader :file_repo, :base_opts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rendering_engine-0.2.0 lib/rendering_engine/provider.rb