Class: Simpacker::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/simpacker/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_path: Rails.root) ⇒ Context

Returns a new instance of Context.



5
6
7
8
# File 'lib/simpacker/context.rb', line 5

def initialize(root_path: Rails.root)
  @config = Simpacker::Configuration.new(root_path: root_path)
  @manifest = Simpacker::Manifest.new(self)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



3
4
5
# File 'lib/simpacker/context.rb', line 3

def config
  @config
end

#manifestObject (readonly)

Returns the value of attribute manifest.



3
4
5
# File 'lib/simpacker/context.rb', line 3

def manifest
  @manifest
end