class Muwu::ManifestTask::DocumentHtml
Attributes
css_filename[RW]
css_include_method[RW]
destination[RW]
index[RW]
js_filename[RW]
js_head_libraries[RW]
js_include_method[RW]
project[RW]
tasks[RW]
Public Instance Methods
contents_blocks()
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 33 def contents_blocks @tasks.select { |task| ManifestTask::Contents === task } end
contents_blocks_by_name(text_root_name)
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 38 def contents_blocks_by_name(text_root_name) contents_blocks.select { |task| task.text_root_name.downcase == text_root_name.downcase } end
filename()
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 43 def filename @destination.output_filename end
inspect()
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 20 def inspect ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ') end
inspect_instance_variables()
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 25 def inspect_instance_variables self.instance_variables.map { |v| "#{v}=#<#{instance_variable_get(v).class}>" }.join(", ") end
text_blocks()
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 48 def text_blocks @tasks.select { |task| ManifestTask::Text === task } end
text_blocks_by_name(text_root_name)
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 53 def text_blocks_by_name(text_root_name) text_blocks.select { |task| task.text_root_name.strip.downcase == text_root_name.strip.downcase } end
will_generate_subcontents_automatically()
click to toggle source
# File lib/muwu/manifest_task/document_html.rb, line 58 def will_generate_subcontents_automatically if @project.options.generate_subcontents_automatically return text_blocks.any? && contents_blocks.empty? else return false end end