Class: Ninja::Target
- Inherits:
-
Object
- Object
- Ninja::Target
- Defined in:
- lib/ninja.rb
Instance Method Summary collapse
-
#initialize(*xs) ⇒ Target
constructor
A new instance of Target.
- #to_a ⇒ Object
- #to_ninja_format ⇒ Object
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_a ⇒ Object
48 49 50 |
# File 'lib/ninja.rb', line 48 def to_a @dep end |
#to_ninja_format ⇒ Object
52 53 54 |
# File 'lib/ninja.rb', line 52 def to_ninja_format @dep.join " " end |