Class: Railspacker::Manifest::Build
- Inherits:
-
Struct
- Object
- Struct
- Railspacker::Manifest::Build
- Defined in:
- lib/railspacker/manifest/build.rb
Instance Attribute Summary collapse
-
#public_path ⇒ Object
Returns the value of attribute public_path.
Instance Method Summary collapse
Instance Attribute Details
#public_path ⇒ Object
Returns the value of attribute public_path
2 3 4 |
# File 'lib/railspacker/manifest/build.rb', line 2 def public_path @public_path end |
Instance Method Details
#load ⇒ Object
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 |