Class: Cxxproject::ModuleBuildingBlock
- Inherits:
-
BuildingBlock
- Object
- BuildingBlock
- Cxxproject::ModuleBuildingBlock
- Defined in:
- lib/cxxproject/buildingblocks/module.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#last_content ⇒ Object
Returns the value of attribute last_content.
-
#main_content ⇒ Object
Returns the value of attribute main_content.
Attributes inherited from BuildingBlock
#config_files, #config_name, #name, #output_dir, #output_dir_abs, #pre_step, #project_dir, #tags
Instance Method Summary collapse
- #convert_to_rake ⇒ Object
- #get_task_name ⇒ Object
-
#initialize(name) ⇒ ModuleBuildingBlock
constructor
A new instance of ModuleBuildingBlock.
Methods inherited from BuildingBlock
#add_output_dir_dependency, #additional_path_components, #calc_complete_output_dir, #catch_output, #check_config_file, #complete_init, #complete_output_dir, #has_tcs?, #printCmd, #process_result, #read_file_or_empty_string, #remove_empty_strings_and_join, #set_config_files, #set_config_name, #set_name, #set_output_dir, #set_project_dir, #set_tcs, #setup_rake_dependencies, #tcs, #typed_file_task
Methods included from HasDependencies
#add_unique, #all_dependencies, #all_dependencies_recursive, #collect_dependencies, #convert_named_values_to_string, #dependencies, #direct_deps, #helper_dependencies, #resolve_by_name, #set_dependencies, #set_helper_dependencies
Constructor Details
#initialize(name) ⇒ ModuleBuildingBlock
Returns a new instance of ModuleBuildingBlock.
15 16 17 18 19 20 |
# File 'lib/cxxproject/buildingblocks/module.rb', line 15 def initialize(name) super @contents = [] @last_content = self @main_content = nil end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
11 12 13 |
# File 'lib/cxxproject/buildingblocks/module.rb', line 11 def contents @contents end |
#last_content ⇒ Object
Returns the value of attribute last_content.
13 14 15 |
# File 'lib/cxxproject/buildingblocks/module.rb', line 13 def last_content @last_content end |
#main_content ⇒ Object
Returns the value of attribute main_content.
12 13 14 |
# File 'lib/cxxproject/buildingblocks/module.rb', line 12 def main_content @main_content end |
Instance Method Details
#convert_to_rake ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/cxxproject/buildingblocks/module.rb', line 26 def convert_to_rake() res = task get_task_name res.type = Rake::Task::MODULE res. = true setup_rake_dependencies(res) res end |
#get_task_name ⇒ Object
22 23 24 |
# File 'lib/cxxproject/buildingblocks/module.rb', line 22 def get_task_name() name end |