Sha256: 847a5472e5f50c87bf0140d5be334f49bf17f15045a93e33ed63fa0e95969e67

Contents?: true

Size: 751 Bytes

Versions: 10

Compression:

Stored size: 751 Bytes

Contents

module Vedeu

  module Bindings

    # System events relating to movement of cursors or interfaces.
    #
    module Application

      extend self

      # Setup events relating to client applications. This method is
      # called by Vedeu.
      #
      # @return [TrueClass]
      def setup!
        goto!
      end

      # @return [TrueClass]
      def setup_aliases!
        Vedeu.bind_alias(:_action_, :_goto_)
      end

      private

      # :nocov:

      # See {file:docs/events/application.md#\_goto_}
      def goto!
        Vedeu.bind(:_goto_) do |controller, action, **args|
          Vedeu::Runtime::Router.goto(controller, action, **args)
        end
      end

      # :nocov:

    end # Application

  end # Bindings

end # Vedeu

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.6.29 lib/vedeu/bindings/application.rb
vedeu-0.6.28 lib/vedeu/bindings/application.rb
vedeu-0.6.27 lib/vedeu/bindings/application.rb
vedeu-0.6.26 lib/vedeu/bindings/application.rb
vedeu-0.6.25 lib/vedeu/bindings/application.rb
vedeu-0.6.24 lib/vedeu/bindings/application.rb
vedeu-0.6.23 lib/vedeu/bindings/application.rb
vedeu-0.6.22 lib/vedeu/bindings/application.rb
vedeu-0.6.21 lib/vedeu/bindings/application.rb
vedeu-0.6.20 lib/vedeu/bindings/application.rb