Sha256: f56efd8fdf476823dcb8dfe896eae77cc80cb12b53a859a5e79a8bc6b3334d2b

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

module Vedeu

  # Binds various events for running and manipulating Vedeu.
  #
  # @note
  #   The methods these modules use are private, and should not be
  #   called directly, however the produced events are all public and
  #   are highly recommended to be used.
  #
  #   Unbinding any of these events is likely to cause problems, so I
  #   would advise leaving them alone. A safe rule: when the name
  #   starts and ends with an underscore, it's probably used by Vedeu
  #   internally.
  #
  module Bindings

    extend self

    # Setup events for running Vedeu. This method is called by Vedeu.
    #
    # @return [TrueClass]
    def setup!
      Vedeu::Events::Repository.reset!

      Vedeu::Bindings::Application.setup!
      Vedeu::Bindings::Document.setup!
      Vedeu::Bindings::Visibility.setup!
      Vedeu::Bindings::Movement.setup!
      Vedeu::Bindings::Menus.setup!
      Vedeu::Bindings::DRB.setup!
      Vedeu::Bindings::Focus.setup!
      Vedeu::Bindings::Refresh.setup!
      Vedeu::Bindings::System.setup!

      true
    end

  end # Bindings

end # Vedeu

Vedeu::Bindings.setup!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.6.8 lib/vedeu/bindings/bindings.rb
vedeu-0.6.7 lib/vedeu/bindings/bindings.rb