Class: Muwu::ManifestTask::Contents
- Inherits:
-
Object
- Object
- Muwu::ManifestTask::Contents
- Defined in:
- lib/muwu/manifest_task/contents.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#item_depth_max ⇒ Object
Returns the value of attribute item_depth_max.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#project ⇒ Object
Returns the value of attribute project.
-
#section_number_max_depth ⇒ Object
Returns the value of attribute section_number_max_depth.
-
#text_root_name ⇒ Object
Returns the value of attribute text_root_name.
-
#will_render_section_numbers ⇒ Object
Returns the value of attribute will_render_section_numbers.
Instance Method Summary collapse
- #inspect ⇒ Object
- #inspect_instance_variables ⇒ Object
- #naming ⇒ Object
- #text_blocks_by_name(name) ⇒ Object
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def destination @destination end |
#item_depth_max ⇒ Object
Returns the value of attribute item_depth_max.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def item_depth_max @item_depth_max end |
#parent ⇒ Object
Returns the value of attribute parent.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def parent @parent end |
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def project @project end |
#section_number_max_depth ⇒ Object
Returns the value of attribute section_number_max_depth.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def section_number_max_depth @section_number_max_depth end |
#text_root_name ⇒ Object
Returns the value of attribute text_root_name.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def text_root_name @text_root_name end |
#will_render_section_numbers ⇒ Object
Returns the value of attribute will_render_section_numbers.
6 7 8 |
# File 'lib/muwu/manifest_task/contents.rb', line 6 def will_render_section_numbers @will_render_section_numbers end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/muwu/manifest_task/contents.rb', line 17 def inspect ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ') end |
#inspect_instance_variables ⇒ Object
22 23 24 |
# File 'lib/muwu/manifest_task/contents.rb', line 22 def inspect_instance_variables self.instance_variables.map { |v| "#{v}=#<#{instance_variable_get(v).class}>" }.join(", ") end |
#naming ⇒ Object
30 31 32 |
# File 'lib/muwu/manifest_task/contents.rb', line 30 def naming [@text_root_name] end |
#text_blocks_by_name(name) ⇒ Object
35 36 37 |
# File 'lib/muwu/manifest_task/contents.rb', line 35 def text_blocks_by_name(name) @project.manifest.text_blocks_by_name(name) end |