Module: Ritsu::SrcFiles::AddUnit

Includes:
AddCppFile, AddHeaderFile
Included in:
Project, Target
Defined in:
lib/ritsu/src_files/unit.rb

Instance Method Summary collapse

Methods included from AddHeaderFile

#add_header_file, #add_header_files

Methods included from AddCppFile

#add_cpp_file, #add_cpp_files

Instance Method Details

#add_unit(name, options = {}) ⇒ Object



11
12
13
14
# File 'lib/ritsu/src_files/unit.rb', line 11

def add_unit(name, options={})
  add_cpp_file(name + ".cpp")
  add_header_file(name + ".h")
end

#add_units(*names) ⇒ Object



16
17
18
19
20
# File 'lib/ritsu/src_files/unit.rb', line 16

def add_units(*names)
  names.each do |name|
    add_unit(name)
  end
end