Class: MxxRu::Cpp::TargetWithFullPath
- Inherits:
-
Object
- Object
- MxxRu::Cpp::TargetWithFullPath
- Defined in:
- lib/mxx_ru/cpp/toolset.rb
Overview
Base class for any target for which full path must be calculated.
Direct Known Subclasses
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(name, path) ⇒ TargetWithFullPath
constructor
A new instance of TargetWithFullPath.
Constructor Details
#initialize(name, path) ⇒ TargetWithFullPath
Returns a new instance of TargetWithFullPath.
57 58 59 60 |
# File 'lib/mxx_ru/cpp/toolset.rb', line 57 def initialize( name, path ) @target_path = path @target_name = name end |
Instance Method Details
#full_name ⇒ Object
62 63 64 65 |
# File 'lib/mxx_ru/cpp/toolset.rb', line 62 def full_name @full_name = File.join( @target_path, @target_name ) unless @full_name @full_name end |