Class: RakeFactory::Task

Inherits:
Rake::TaskLib
  • Object
show all
Extended by:
Definable
Includes:
Actions, Arguments, Configurable, Defaults, Parameters
Defined in:
lib/rake_factory/task.rb

Instance Method Summary collapse

Methods included from Definable

inherited

Methods included from Actions

included, #invoke_actions

Methods included from Arguments

#initialize, #process_arguments

Methods included from Defaults

included

Methods included from Configurable

included, #initialize, #invoke_configuration_block_on, #process_configuration_block

Methods included from Parameters

#check_parameter_requirements, included, #initialize, #parameter_values, #setup_parameter_defaults

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/rake_factory/task.rb', line 33

def method_missing(method, *args, &block)
  if @task.respond_to?(method)
    @task.send(method, *args, &block)
  else
    super(method, *args, &block)
  end
end

Instance Method Details

#define_on(application) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/rake_factory/task.rb', line 23

def define_on(application)
  creator = self

  define_task(application)
  add_description
  add_creator(creator)

  self
end

#respond_to_missing?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/rake_factory/task.rb', line 41

def respond_to_missing?(method, include_private = false)
  @task.respond_to?(method) || super
end