Class: Muwu::ManifestTask::DocumentHtml
- Inherits:
-
Object
- Object
- Muwu::ManifestTask::DocumentHtml
- Defined in:
- lib/muwu/manifest_task/document_html.rb
Instance Attribute Summary collapse
-
#css_filename ⇒ Object
Returns the value of attribute css_filename.
-
#css_include_method ⇒ Object
Returns the value of attribute css_include_method.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#index ⇒ Object
Returns the value of attribute index.
-
#js_filename ⇒ Object
Returns the value of attribute js_filename.
-
#js_head_libraries ⇒ Object
Returns the value of attribute js_head_libraries.
-
#js_include_method ⇒ Object
Returns the value of attribute js_include_method.
-
#project ⇒ Object
Returns the value of attribute project.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
Instance Method Summary collapse
- #contents_blocks ⇒ Object
- #contents_blocks_by_name(text_root_name) ⇒ Object
- #filename ⇒ Object
- #inspect ⇒ Object
- #inspect_instance_variables ⇒ Object
- #text_blocks ⇒ Object
- #text_blocks_by_name(text_root_name) ⇒ Object
- #will_generate_subcontents_automatically ⇒ Object
Instance Attribute Details
#css_filename ⇒ Object
Returns the value of attribute css_filename.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def css_filename @css_filename end |
#css_include_method ⇒ Object
Returns the value of attribute css_include_method.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def css_include_method @css_include_method end |
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def destination @destination end |
#index ⇒ Object
Returns the value of attribute index.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def index @index end |
#js_filename ⇒ Object
Returns the value of attribute js_filename.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def js_filename @js_filename end |
#js_head_libraries ⇒ Object
Returns the value of attribute js_head_libraries.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def js_head_libraries @js_head_libraries end |
#js_include_method ⇒ Object
Returns the value of attribute js_include_method.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def js_include_method @js_include_method end |
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def project @project end |
#tasks ⇒ Object
Returns the value of attribute tasks.
6 7 8 |
# File 'lib/muwu/manifest_task/document_html.rb', line 6 def tasks @tasks end |
Instance Method Details
#contents_blocks ⇒ Object
33 34 35 |
# 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) ⇒ Object
38 39 40 |
# 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 ⇒ Object
43 44 45 |
# File 'lib/muwu/manifest_task/document_html.rb', line 43 def filename @destination.output_filename end |
#inspect ⇒ Object
20 21 22 |
# File 'lib/muwu/manifest_task/document_html.rb', line 20 def inspect ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ') end |
#inspect_instance_variables ⇒ Object
25 26 27 |
# 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 ⇒ Object
48 49 50 |
# 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) ⇒ Object
53 54 55 |
# 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 ⇒ Object
58 59 60 61 62 63 64 |
# File 'lib/muwu/manifest_task/document_html.rb', line 58 def will_generate_subcontents_automatically if @project..generate_subcontents_automatically return text_blocks.any? && contents_blocks.empty? else return false end end |