Class GnomeSSHMenu::Factory
In: lib/gnome-sshmenu.rb  (Git)
Parent: SSHMenu::Factory

The GnomeSSHMenu::Factory class overrides the SSHMenu::Factory class to provide alternate class mappings.

Methods

Public Class methods

Sets the default mapping for ‘app’ to GnomeSSHMenu::App.

[Source]

# File lib/gnome-sshmenu.rb, line 42
    def Factory.inject_defaults
      mapper.inject('app' => GnomeSSHMenu::App)
      super
    end

Sets the default mapping for ‘app.model’ to GnomeSSHMenu::Config.

[Source]

# File lib/gnome-sshmenu.rb, line 34
    def Factory.option_defaults
      return super.merge(
        :model_class    => GnomeSSHMenu::Config
      )
    end

[Validate]