Class: Dossier::Renderer::Engine

Inherits:
AbstractController::Base
  • Object
show all
Includes:
AbstractController::Layouts, ViewContextWithReportFormatter
Defined in:
lib/dossier/renderer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ViewContextWithReportFormatter

#view_context

Constructor Details

#initialize(report) ⇒ Engine

Returns a new instance of Engine.



57
58
59
60
# File 'lib/dossier/renderer.rb', line 57

def initialize(report)
  @report = report
  super()
end

Instance Attribute Details

#reportObject (readonly)

Returns the value of attribute report.



42
43
44
# File 'lib/dossier/renderer.rb', line 42

def report
  @report
end

Class Method Details

._helpersObject



46
47
48
49
50
51
# File 'lib/dossier/renderer.rb', line 46

def self._helpers
  Module.new do
    include Rails.application.helpers
    include Rails.application.routes_url_helpers
  end
end

._view_pathsObject



53
54
55
# File 'lib/dossier/renderer.rb', line 53

def self._view_paths
  ActionController::Base.view_paths
end