Class: Spud::BuildTools::Rule
- Defined in:
- lib/build_tools/make/make.rb
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(name) ⇒ Rule
constructor
A new instance of Rule.
- #invoke(*args, **kwargs) ⇒ Object
Methods inherited from BuildRule
#keyword_params, #positional_params
Constructor Details
#initialize(name) ⇒ Rule
Returns a new instance of Rule.
21 22 23 |
# File 'lib/build_tools/make/make.rb', line 21 def initialize(name) @name = name end |
Instance Method Details
#filename ⇒ Object
29 30 31 |
# File 'lib/build_tools/make/make.rb', line 29 def filename 'Makefile' end |
#invoke(*args, **kwargs) ⇒ Object
25 26 27 |
# File 'lib/build_tools/make/make.rb', line 25 def invoke(*args, **kwargs) system('make', @name, *args) end |