Class: Spud::BuildTools::Spud::DSL::File
- Inherits:
-
Object
- Object
- Spud::BuildTools::Spud::DSL::File
show all
- Defined in:
- lib/spud/build_tools/spud/dsl/file.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
16
17
18
|
# File 'lib/spud/build_tools/spud/dsl/file.rb', line 16
def method_missing(name, *args, &block)
task(name, *args, &block)
end
|
Instance Method Details
#require_relative(name) ⇒ Object
8
9
10
|
# File 'lib/spud/build_tools/spud/dsl/file.rb', line 8
def require_relative(name)
require("./#{name}")
end
|
#task(name, &block) ⇒ Object
12
13
14
|
# File 'lib/spud/build_tools/spud/dsl/file.rb', line 12
def task(name, *, &block)
BuildTools::Spud::Task.add_task(name, &block)
end
|