Class: JekyllAssetPipeline::Asset
- Inherits:
-
Object
- Object
- JekyllAssetPipeline::Asset
- Defined in:
- lib/jekyll_asset_pipeline/asset.rb
Overview
Holds an asset (file)
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#dirname ⇒ Object
Returns the value of attribute dirname.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
Instance Method Summary collapse
-
#initialize(content, filename, dirname = '.') ⇒ Asset
constructor
A new instance of Asset.
Constructor Details
#initialize(content, filename, dirname = '.') ⇒ Asset
Returns a new instance of Asset.
6 7 8 9 10 |
# File 'lib/jekyll_asset_pipeline/asset.rb', line 6 def initialize(content, filename, dirname = '.') @content = content @filename = filename @dirname = dirname end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
12 13 14 |
# File 'lib/jekyll_asset_pipeline/asset.rb', line 12 def content @content end |
#dirname ⇒ Object
Returns the value of attribute dirname.
12 13 14 |
# File 'lib/jekyll_asset_pipeline/asset.rb', line 12 def dirname @dirname end |
#filename ⇒ Object
Returns the value of attribute filename.
12 13 14 |
# File 'lib/jekyll_asset_pipeline/asset.rb', line 12 def filename @filename end |
#output_path ⇒ Object
Returns the value of attribute output_path.
12 13 14 |
# File 'lib/jekyll_asset_pipeline/asset.rb', line 12 def output_path @output_path end |