Class: Ninja::Build
- Inherits:
-
Object
- Object
- Ninja::Build
- Defined in:
- lib/ninja/build.rb
Defined Under Namespace
Modules: Description
Instance Attribute Summary collapse
-
#implicit_inputs ⇒ Object
readonly
Returns the value of attribute implicit_inputs.
-
#inputs ⇒ Object
readonly
Returns the value of attribute inputs.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(desc = {}) ⇒ Build
constructor
A new instance of Build.
Constructor Details
#initialize(desc = {}) ⇒ Build
Returns a new instance of Build.
9 10 11 12 13 14 15 16 17 |
# File 'lib/ninja/build.rb', line 9 def initialize(desc={}) Description.validate!(desc) @rule = desc[:rule] @inputs = [*desc[:inputs]] @implicit_inputs = [*desc[:implicit_inputs]] @output = desc[:output] @variables = desc[:variables] end |
Instance Attribute Details
#implicit_inputs ⇒ Object (readonly)
Returns the value of attribute implicit_inputs.
3 4 5 |
# File 'lib/ninja/build.rb', line 3 def implicit_inputs @implicit_inputs end |
#inputs ⇒ Object (readonly)
Returns the value of attribute inputs.
3 4 5 |
# File 'lib/ninja/build.rb', line 3 def inputs @inputs end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
3 4 5 |
# File 'lib/ninja/build.rb', line 3 def output @output end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
3 4 5 |
# File 'lib/ninja/build.rb', line 3 def rule @rule end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
3 4 5 |
# File 'lib/ninja/build.rb', line 3 def variables @variables end |