Class: Rscons::BuildTarget
- Inherits:
-
Object
- Object
- Rscons::BuildTarget
- Defined in:
- lib/rscons/build_target.rb
Overview
The BuildTarget class represents a single build target.
Instance Method Summary collapse
-
#depends(*user_deps) ⇒ void
Manually record a given target as depending on the specified files.
-
#initialize(options) ⇒ BuildTarget
constructor
Create a BuildTarget object.
-
#to_s ⇒ String
Convert the BuildTarget to a String.
Constructor Details
#initialize(options) ⇒ BuildTarget
Create a BuildTarget object.
13 14 15 16 |
# File 'lib/rscons/build_target.rb', line 13 def initialize() @env = [:env] @target = [:target] end |
Instance Method Details
#depends(*user_deps) ⇒ void
This method returns an undefined value.
Manually record a given target as depending on the specified files.
23 24 25 |
# File 'lib/rscons/build_target.rb', line 23 def depends(*user_deps) @env.depends(@target, *user_deps) end |
#to_s ⇒ String
Convert the BuildTarget to a String.
This method always returns the target file name.
32 33 34 |
# File 'lib/rscons/build_target.rb', line 32 def to_s @target end |