Class: JAPR::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/japr/asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



9
10
11
# File 'lib/japr/asset.rb', line 9

def content
  @content
end

#dirnameObject

Returns the value of attribute dirname.



9
10
11
# File 'lib/japr/asset.rb', line 9

def dirname
  @dirname
end

#filenameObject

Returns the value of attribute filename.



9
10
11
# File 'lib/japr/asset.rb', line 9

def filename
  @filename
end

#output_pathObject

Returns the value of attribute output_path.



9
10
11
# File 'lib/japr/asset.rb', line 9

def output_path
  @output_path
end