Class: Railspacker::Manifest::Build

Inherits:
Struct
  • Object
show all
Defined in:
lib/railspacker/manifest/build.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#public_pathObject

Returns the value of attribute public_path

Returns:

  • (Object)

    the current value of public_path



2
3
4
# File 'lib/railspacker/manifest/build.rb', line 2

def public_path
  @public_path
end

Instance Method Details

#loadObject



3
4
5
6
7
# File 'lib/railspacker/manifest/build.rb', line 3

def load
  file = Rails.public_path.join(public_path).join('manifest.json')

  JSON.parse File.read(file)
end