Class: Confinement::Asset
- Inherits:
-
Object
- Object
- Confinement::Asset
- Includes:
- Blob, RouteableBlob
- Defined in:
- lib/confinement.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Attributes included from RouteableBlob
Attributes included from Blob
Instance Method Summary collapse
- #entrypoint? ⇒ Boolean
-
#initialize(input_path:, entrypoint:) ⇒ Asset
constructor
A new instance of Asset.
Constructor Details
#initialize(input_path:, entrypoint:) ⇒ Asset
Returns a new instance of Asset.
428 429 430 431 |
# File 'lib/confinement.rb', line 428 def initialize(input_path:, entrypoint:) self.input_path = input_path @entrypoint = entrypoint end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
433 434 435 |
# File 'lib/confinement.rb', line 433 def body @body end |
Instance Method Details
#entrypoint? ⇒ Boolean
435 436 437 |
# File 'lib/confinement.rb', line 435 def entrypoint? !!@entrypoint end |