Class: Ninja::Build

Inherits:
Object
  • Object
show all
Defined in:
lib/ninja/build.rb

Defined Under Namespace

Modules: Description

Instance Attribute Summary collapse

Instance Method Summary collapse

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_inputsObject (readonly)

Returns the value of attribute implicit_inputs.



3
4
5
# File 'lib/ninja/build.rb', line 3

def implicit_inputs
  @implicit_inputs
end

#inputsObject (readonly)

Returns the value of attribute inputs.



3
4
5
# File 'lib/ninja/build.rb', line 3

def inputs
  @inputs
end

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/ninja/build.rb', line 3

def output
  @output
end

#ruleObject (readonly)

Returns the value of attribute rule.



3
4
5
# File 'lib/ninja/build.rb', line 3

def rule
  @rule
end

#variablesObject (readonly)

Returns the value of attribute variables.



3
4
5
# File 'lib/ninja/build.rb', line 3

def variables
  @variables
end