Module: Vedeu::DSL

Included in:
Border, Composition, Geometry, Group, Interface, Keymap, Line, Menu, Stream
Defined in:
lib/vedeu/dsl/all.rb,
lib/vedeu/dsl/line.rb,
lib/vedeu/dsl/view.rb,
lib/vedeu/dsl/group.rb,
lib/vedeu/dsl/stream.rb,
lib/vedeu/dsl/interface.rb,
lib/vedeu/dsl/shared/use.rb,
lib/vedeu/dsl/composition.rb,
lib/vedeu/dsl/shared/text.rb,
lib/vedeu/dsl/shared/style.rb,
lib/vedeu/dsl/shared/colour.rb,
lib/vedeu/dsl/components/menu.rb,
lib/vedeu/dsl/components/border.rb,
lib/vedeu/dsl/components/keymap.rb,
lib/vedeu/dsl/components/geometry.rb

Overview

Provides a mechanism to help configure and use Vedeu.

Defined Under Namespace

Modules: Colour, Style, Text, Use Classes: Border, Composition, Geometry, Group, Interface, Keymap, Line, Menu, Stream, View

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#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.



25
26
27
28
29
# File 'lib/vedeu/dsl/all.rb', line 25

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

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