Class: Muwu::ManifestTask::Contents

Inherits:
Object
  • Object
show all
Defined in:
lib/muwu/manifest_task/contents.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



6
7
8
# File 'lib/muwu/manifest_task/contents.rb', line 6

def destination
  @destination
end

#item_depth_maxObject

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

#parentObject

Returns the value of attribute parent.



6
7
8
# File 'lib/muwu/manifest_task/contents.rb', line 6

def parent
  @parent
end

#projectObject

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_depthObject

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_nameObject

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_numbersObject

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

#inspectObject



17
18
19
# File 'lib/muwu/manifest_task/contents.rb', line 17

def inspect
  ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ')
end

#inspect_instance_variablesObject



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

#namingObject



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