Method: Vedeu::DSL#method_missing

Defined in:
lib/vedeu/dsl/dsl.rb

#method_missing(method, *args, &block) ⇒ void (private)

This method returns an undefined value.

Attempts to find the missing method on the client object.

Parameters:

  • method (Symbol)

    The name of the method sought.

  • args (Array)

    The arguments which the method was to be invoked with.

  • block (Proc)

    The optional block provided to the method.



55
56
57
58
59
60
61
# File 'lib/vedeu/dsl/dsl.rb', line 55

def method_missing(method, *args, &block)
  Vedeu.log(type:    :debug,
            message: "!!!method_missing '#{method}' " \
                     "(#{client.inspect})".freeze)

  client.send(method, *args, &block) if client
end