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
32 33 34 |
# File 'lib/muwu/manifest_task/document_html.rb', line 32 def contents_blocks @tasks.select { |task| ManifestTask::Contents === task } end |
#contents_blocks_by_name(text_root_name) ⇒ Object
37 38 39 |
# File 'lib/muwu/manifest_task/document_html.rb', line 37 def contents_blocks_by_name(text_root_name) contents_blocks.select { |contents| contents.text_root_name.downcase == text_root_name.downcase } end |
#filename ⇒ Object
42 43 44 |
# File 'lib/muwu/manifest_task/document_html.rb', line 42 def filename @destination.output_filename end |
#inspect ⇒ Object
19 20 21 |
# File 'lib/muwu/manifest_task/document_html.rb', line 19 def inspect ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ') end |
#inspect_instance_variables ⇒ Object
24 25 26 |
# File 'lib/muwu/manifest_task/document_html.rb', line 24 def inspect_instance_variables self.instance_variables.map { |v| "#{v}=#<#{instance_variable_get(v).class}>" }.join(", ") end |
#text_blocks ⇒ Object
47 48 49 |
# File 'lib/muwu/manifest_task/document_html.rb', line 47 def text_blocks @tasks.select { |task| ManifestTask::Text === task } end |
#text_blocks_by_name(text_root_name) ⇒ Object
52 53 54 |
# File 'lib/muwu/manifest_task/document_html.rb', line 52 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
57 58 59 60 61 62 63 |
# File 'lib/muwu/manifest_task/document_html.rb', line 57 def will_generate_subcontents_automatically if @project..generate_subcontents_automatically return text_blocks.any? && contents_blocks.empty? else return false end end |