Sha256: d1f1cfb3dfe0d5f76523e42dffb94b8baf70a8d9a01e4d10e717c01f52ab5858

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

module Instrumentation
  # Handles rendering of ERB templates and asset loading
  class View
    include Erb::View
    template :index

    def asset(path)
      File.read(asset_root.join('lib/assets', path))
    end

    private

    def asset_root
      Instrumentation.root
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
process-instrumentation-0.1.3 lib/instrumentation/view.rb
process-instrumentation-0.1.2 lib/instrumentation/view.rb
process-instrumentation-0.1.1 lib/instrumentation/view.rb