Sha256: fcbb065b16a83173af0405571e72ebca3b713406f33cd81b95f61d06258f5a03

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 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

      private

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

        Vedeu.bind_alias(:_action_, :_goto_)
      end

    end # Application

  end # Bindings

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.6.9 lib/vedeu/bindings/application.rb