class Ninja::Build
Public Class Methods
new(rule, target, explicit_dep, implicit_dep=nil)
click to toggle source
# File lib/ninja.rb, line 78 def initialize(rule, target, explicit_dep, implicit_dep=nil) @rule = rule @target = target @explicit_dep = explicit_dep @implicit_dep = implicit_dep # order-only dep is not supported because I do not get how we need it. end
Public Instance Methods
get_rule_object()
click to toggle source
# File lib/ninja.rb, line 90 def get_rule_object @rule end
get_target_object()
click to toggle source
# File lib/ninja.rb, line 86 def get_target_object @target end
implicit_dep_line()
click to toggle source
# File lib/ninja.rb, line 94 def implicit_dep_line if @implicit_dep == nil "" else @implicit_dep.to_ninja_format end end
to_ninja_format()
click to toggle source
# File lib/ninja.rb, line 102 def to_ninja_format """ build #{@target.to_ninja_format}: #{@rule.name} #{@explicit_dep.to_ninja_format} #{implicit_dep_line} """ end