Class: Staticz::Js
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Compilable
#build_path, #create_link_function, #exists?, #path, #path_method_name, #print, #source_path, #valid
Constructor Details
#initialize(name) ⇒ Js
Returns a new instance of Js.
13
14
15
|
# File 'lib/manifest/js.rb', line 13
def initialize(name)
@name = name
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5
6
7
|
# File 'lib/manifest/js.rb', line 5
def name
@name
end
|
Instance Method Details
#build ⇒ Object
17
18
19
20
21
|
# File 'lib/manifest/js.rb', line 17
def build
if exists?
File.write build_path, File.read(source_path)
end
end
|
#build_file_ending ⇒ Object
9
|
# File 'lib/manifest/js.rb', line 9
def build_file_ending = "js"
|
#source_file_ending ⇒ Object
7
|
# File 'lib/manifest/js.rb', line 7
def source_file_ending = "js"
|
#tile_type_name ⇒ Object
11
|
# File 'lib/manifest/js.rb', line 11
def tile_type_name = "Js"
|