Class: MxxRu::Cpp::CppSourceFile
- Inherits:
-
Object
- Object
- MxxRu::Cpp::CppSourceFile
- Defined in:
- lib/mxx_ru/cpp/source_file.rb
Overview
Class, describing one C/C++ source file.
Instance Attribute Summary collapse
-
#compiler_options ⇒ Object
readonly
Compiler options list for that file.
-
#depends ⇒ Object
readonly
A list of files, given file is depentent from.
-
#name ⇒ Object
readonly
File name (string).
Instance Method Summary collapse
-
#initialize(file_name, a_compiler_options) ⇒ CppSourceFile
constructor
A new instance of CppSourceFile.
Constructor Details
#initialize(file_name, a_compiler_options) ⇒ CppSourceFile
Returns a new instance of CppSourceFile.
41 42 43 44 45 46 47 48 49 |
# File 'lib/mxx_ru/cpp/source_file.rb', line 41 def initialize( file_name, ) @name = file_name if @compiler_options = .clone else @compiler_options = Array.new end @depends = Array.new end |
Instance Attribute Details
#compiler_options ⇒ Object (readonly)
Compiler options list for that file.
37 38 39 |
# File 'lib/mxx_ru/cpp/source_file.rb', line 37 def @compiler_options end |
#depends ⇒ Object (readonly)
A list of files, given file is depentent from.
39 40 41 |
# File 'lib/mxx_ru/cpp/source_file.rb', line 39 def depends @depends end |
#name ⇒ Object (readonly)
File name (string).
35 36 37 |
# File 'lib/mxx_ru/cpp/source_file.rb', line 35 def name @name end |