Class: Muwu::ManifestTask::Text
- Inherits:
-
Object
- Object
- Muwu::ManifestTask::Text
- Defined in:
- lib/muwu/manifest_task/text.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#naming ⇒ Object
Returns the value of attribute naming.
-
#numbering ⇒ Object
Returns the value of attribute numbering.
-
#project ⇒ Object
Returns the value of attribute project.
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
- #inspect ⇒ Object
- #inspect_instance_variables ⇒ Object
- #naming_downcase ⇒ Object
- #naming_downcase_without_text_root ⇒ Object
- #naming_without_text_root ⇒ Object
- #text_root_name ⇒ Object
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/muwu/manifest_task/text.rb', line 6 def destination @destination end |
#naming ⇒ Object
Returns the value of attribute naming.
6 7 8 |
# File 'lib/muwu/manifest_task/text.rb', line 6 def naming @naming end |
#numbering ⇒ Object
Returns the value of attribute numbering.
6 7 8 |
# File 'lib/muwu/manifest_task/text.rb', line 6 def numbering @numbering end |
#project ⇒ Object
Returns the value of attribute project.
6 7 8 |
# File 'lib/muwu/manifest_task/text.rb', line 6 def project @project end |
#sections ⇒ Object
Returns the value of attribute sections.
6 7 8 |
# File 'lib/muwu/manifest_task/text.rb', line 6 def sections @sections end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/muwu/manifest_task/text.rb', line 15 def inspect ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ') end |
#inspect_instance_variables ⇒ Object
20 21 22 |
# File 'lib/muwu/manifest_task/text.rb', line 20 def inspect_instance_variables self.instance_variables.map { |v| "#{v}=#<#{instance_variable_get(v).class}>" }.join(", ") end |
#naming_downcase ⇒ Object
29 30 31 |
# File 'lib/muwu/manifest_task/text.rb', line 29 def naming_downcase @naming.map {|n| n.downcase} end |
#naming_downcase_without_text_root ⇒ Object
34 35 36 |
# File 'lib/muwu/manifest_task/text.rb', line 34 def naming_downcase_without_text_root naming_without_text_root.map {|n| n.downcase} end |
#naming_without_text_root ⇒ Object
39 40 41 |
# File 'lib/muwu/manifest_task/text.rb', line 39 def naming_without_text_root @naming[1..-1] end |
#text_root_name ⇒ Object
44 45 46 |
# File 'lib/muwu/manifest_task/text.rb', line 44 def text_root_name @naming[0] end |