Class: Ritsu::SrcFiles::CppFile

Inherits:
Ritsu::SrcFile show all
Defined in:
lib/ritsu/src_files/cpp_file.rb

Instance Attribute Summary

Attributes inherited from Ritsu::SrcFile

#owner, #src_path

Instance Method Summary collapse

Methods inherited from Ritsu::SrcFile

#abs_path, #base_name, #create, find_by_src_path, #include_in_source_files?, is_valid_src_path?, #project, #remove, #update, #update_content, validate_instance

Methods included from Utility

platform

Methods included from Utility::InstanceSet

included, #initialize_instance

Constructor Details

#initialize(src_path, owner) ⇒ CppFile

Returns a new instance of CppFile.



8
9
10
# File 'lib/ritsu/src_files/cpp_file.rb', line 8

def initialize(src_path, owner)
  super(src_path, owner)
end

Instance Method Details

#cpp_file?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/ritsu/src_files/cpp_file.rb', line 16

def cpp_file?
  true
end

#header_file?Boolean

Returns:

  • (Boolean)


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

def header_file?
  false
end