Class: Ritsu::SrcFiles::ProjectCmakeLists
- Inherits:
-
TemplatedSrcFile
- Object
- Ritsu::SrcFile
- TemplatedSrcFile
- Ritsu::SrcFiles::ProjectCmakeLists
- Defined in:
- lib/ritsu/src_files/project_cmake_lists.rb,
lib/ritsu/ext/fake_install/src_files/project_cmake_lists.rb
Defined Under Namespace
Classes: ConfigureFileTemplate, CustomScriptTemplate, DirectoriesTemplate, ExternalLibrariesTemplate, FakeInstallTemplate, HeaderTemplate, Template
Instance Attribute Summary
Attributes inherited from TemplatedSrcFile
#block_end_prefix, #block_start_prefix, #template
Attributes inherited from Ritsu::SrcFile
Instance Method Summary collapse
- #include_in_source_files? ⇒ Boolean
-
#initialize(owner) ⇒ ProjectCmakeLists
constructor
A new instance of ProjectCmakeLists.
Methods inherited from TemplatedSrcFile
Methods inherited from Ritsu::SrcFile
#abs_path, #base_name, #create, find_by_src_path, is_valid_src_path?, #project, #remove, #update, #update_content, validate_instance
Methods included from Utility
Methods included from Utility::InstanceSet
included, #initialize_instance
Constructor Details
#initialize(owner) ⇒ ProjectCmakeLists
Returns a new instance of ProjectCmakeLists.
122 123 124 125 126 127 |
# File 'lib/ritsu/src_files/project_cmake_lists.rb', line 122 def initialize(owner) super('CMakeLists.txt', owner, :block_start_prefix => "##<<", :block_end_prefix => "##>>") self.template = Template.new(project) end |
Instance Method Details
#include_in_source_files? ⇒ Boolean
129 130 131 |
# File 'lib/ritsu/src_files/project_cmake_lists.rb', line 129 def include_in_source_files? false end |