Sha256: 84bb4e95febf9025f25a7750260b902383646f97495e00cebd2c17909946cd1f

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

module RenderingEngine
  class Provider
    def initialize(base_path)
      @base_path = base_path
    end

    def get(relative_path)
      file_path = File.join(base_path, relative_path)
      Content.new(file_path)
    end

    private

    attr_reader :base_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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