Class: JAPR::Asset
- Inherits:
-
Object
- Object
- JAPR::Asset
- Defined in:
- lib/japr/asset.rb
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.
3 4 5 6 7 |
# File 'lib/japr/asset.rb', line 3 def initialize(content, filename, dirname = '.') @content = content @filename = filename @dirname = dirname end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
9 10 11 |
# File 'lib/japr/asset.rb', line 9 def content @content end |
#dirname ⇒ Object
Returns the value of attribute dirname.
9 10 11 |
# File 'lib/japr/asset.rb', line 9 def dirname @dirname end |
#filename ⇒ Object
Returns the value of attribute filename.
9 10 11 |
# File 'lib/japr/asset.rb', line 9 def filename @filename end |
#output_path ⇒ Object
Returns the value of attribute output_path.
9 10 11 |
# File 'lib/japr/asset.rb', line 9 def output_path @output_path end |