Class: Ninja::Build
- Inherits:
-
Object
- Object
- Ninja::Build
- Defined in:
- lib/ninja/build.rb
Defined Under Namespace
Modules: Description
Instance Attribute Summary collapse
-
#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.
Instance Method Summary collapse
-
#initialize(desc = {}) ⇒ Build
constructor
A new instance of Build.
Constructor Details
#initialize(desc = {}) ⇒ Build
Returns a new instance of Build.
7 8 9 10 11 12 13 |
# File 'lib/ninja/build.rb', line 7 def initialize(desc={}) Description.validate!(desc) @rule = desc[:rule] @inputs = [*desc[:inputs]] @output = desc[:output] end |
Instance Attribute Details
#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 |