Module: Gtk2AppLib::Missing

Included in:
Dialogs, Widgets
Defined in:
lib/gtk2applib.rb

Constant Summary

REQUIRES =
{
  :define_composite => 'gtk2applib/widgets/composite',
  :define_evented   => 'gtk2applib/widgets/evented',
  :auth             => 'gtk2applib/dialogs/auth',
  :choose_tags      => 'gtk2applib/dialogs/choose_tags',
  :entry            => 'gtk2applib/dialogs/entry',
  :get_date         => 'gtk2applib/dialogs/get_date',
  :login            => 'gtk2applib/dialogs/login',
  :pick_one         => 'gtk2applib/dialogs/pick_one',
  :question?        => 'gtk2applib/dialogs/question',
  :quick_message    => 'gtk2applib/dialogs/quick_message',
  :show_image       => 'gtk2applib/dialogs/show_image',
  :text_view        => 'gtk2applib/dialogs/text_view',
}

Class Method Summary (collapse)

Class Method Details

+ (Object) missing(missing, obj, *args)



37
38
39
40
41
42
43
44
45
# File 'lib/gtk2applib.rb', line 37

def self.missing(missing, obj, *args)
  if file = REQUIRES[missing] then
    require file
    arguments, block = args
    obj.method(missing).call(*arguments, &block)
  else
    yield
  end
end