Class: Staticz::Compilable::Js
Instance Attribute Summary collapse
Instance Method Summary
collapse
#build_path, #create_link_function, #errors, #exists?, #path, #path_method_name, #print, #source_path, #valid?
Constructor Details
#initialize(name) ⇒ Js
Returns a new instance of Js.
16
17
18
|
# File 'lib/manifest/compilable/js.rb', line 16
def initialize(name)
@name = name
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8
9
10
|
# File 'lib/manifest/compilable/js.rb', line 8
def name
@name
end
|
Instance Method Details
#build ⇒ Object
20
21
22
23
24
|
# File 'lib/manifest/compilable/js.rb', line 20
def build
if exists?
File.write build_path, File.read(source_path)
end
end
|
#build_file_ending ⇒ Object
12
|
# File 'lib/manifest/compilable/js.rb', line 12
def build_file_ending = "js"
|
#source_file_ending ⇒ Object
10
|
# File 'lib/manifest/compilable/js.rb', line 10
def source_file_ending = "js"
|
#tile_type_name ⇒ Object
14
|
# File 'lib/manifest/compilable/js.rb', line 14
def tile_type_name = "Js"
|