Class: Confinement::Asset

Inherits:
Object
  • Object
show all
Includes:
Blob, RouteableBlob
Defined in:
lib/confinement.rb

Instance Attribute Summary collapse

Attributes included from RouteableBlob

#output_path, #url_path

Attributes included from Blob

#input_path

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



433
434
435
# File 'lib/confinement.rb', line 433

def body
  @body
end

Instance Method Details

#entrypoint?Boolean

Returns:

  • (Boolean)


435
436
437
# File 'lib/confinement.rb', line 435

def entrypoint?
  !!@entrypoint
end