Sha256: a277266764c720d2d1ee538277efd97582a5f485ca88b7a86f24fb0fe523a960

Contents?: true

Size: 802 Bytes

Versions: 4

Compression:

Stored size: 802 Bytes

Contents

module Vedeu

  module Bindings

    module Focus

      extend self

      # Setup events relating to running Vedeu. This method is called
      # by Vedeu.
      #
      # @return [TrueClass]
      def setup!
        focus_by_name!
        focus_next!
        focus_prev!
      end

      private

      # See {file:docs/events/focus.md#\_focus_by_name_}
      def focus_by_name!
        Vedeu.bind(:_focus_by_name_) { |name| Vedeu.focus_by_name(name) }
      end

      # See {file:docs/events/focus.md#\_focus_next_}
      def focus_next!
        Vedeu.bind(:_focus_next_) { Vedeu.focus_next }
      end

      # See {file:docs/events/focus.md#\_focus_prev_}
      def focus_prev!
        Vedeu.bind(:_focus_prev_) { Vedeu.focus_previous }
      end

    end # Focus

  end # Bindings

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.6.12 lib/vedeu/bindings/focus.rb
vedeu-0.6.11 lib/vedeu/bindings/focus.rb
vedeu-0.6.10 lib/vedeu/bindings/focus.rb
vedeu-0.6.9 lib/vedeu/bindings/focus.rb