Class: Ninja::Target

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

Instance Method Summary collapse

Constructor Details

#initialize(*xs) ⇒ Target

Returns a new instance of Target.



44
45
46
# File 'lib/ninja.rb', line 44

def initialize(*xs)
  @dep = xs.flatten
end

Instance Method Details

#to_aObject



48
49
50
# File 'lib/ninja.rb', line 48

def to_a
  @dep
end

#to_ninja_formatObject



52
53
54
# File 'lib/ninja.rb', line 52

def to_ninja_format
  @dep.join " "
end