Class: Ritsu::SrcFiles::SharedLibraryCmakeLists::Template
- Inherits:
-
TargetCmakeLists::Template
- Object
- Template
- TargetCmakeLists::Template
- Ritsu::SrcFiles::SharedLibraryCmakeLists::Template
- Defined in:
- lib/ritsu/src_files/shared_library_cmake_lists.rb
Instance Attribute Summary
Attributes inherited from TargetCmakeLists::Template
#cuda_compile_template, #cuda_include_directories_template, #custom_commands_template, #dependencies_template, #install_template, #libraries_template, #qt_moc_template, #qt_ui_template, #source_files_template, #target
Attributes included from BlockMixin
#contents, #id, #indent_length, #indent_level, #local_indentation
Instance Method Summary collapse
-
#initialize(target, options = {}) ⇒ Template
constructor
A new instance of Template.
Methods inherited from TargetCmakeLists::Template
#initialize_before_cuda, #initialize_before_qt, #position_to_insert, #position_to_insert_before_cuda, #position_to_insert_before_qt
Methods included from TemplatePolicies::FlexibleBlockMatchingAndCreateMissingBlockButLeaveUserTextBe
#position_to_insert, #update_block
Methods included from TemplatePolicies::FlexibleBlockMatching
Methods inherited from Template
#add_content, #add_template, #child_template_with_id, #child_template_with_id_position, #child_templates, #create_block, #update_block
Methods included from BlockMixin
#add_line, #add_new_line, #block_structure?, #clear_contents, #indent, #initialize_block_mixin, #outdent
Constructor Details
#initialize(target, options = {}) ⇒ Template
Returns a new instance of Template.
23 24 25 26 27 28 29 |
# File 'lib/ritsu/src_files/shared_library_cmake_lists.rb', line 23 def initialize(target, ={}) super(target, "SharedLibraryCmakeLists -- #{target.name}") position_to_insert = contents.index(dependencies_template) contents.insert(position_to_insert, SharedLibraryTemplate.new(target, self)) contents.insert(position_to_insert+1, "") end |