Sha256: e7c66da1b9743222e3c91ec84f55f5b11c349cc5a352228508fae4e9d1694a91

Contents?: true

Size: 1008 Bytes

Versions: 9

Compression:

Stored size: 1008 Bytes

Contents

module Vedeu

  module Cursors

    # Allows the storing of each interface's cursor.
    #
    class Repository < Vedeu::Repositories::Repository

      singleton_class.send(:alias_method, :cursors, :repository)

      class << self

        # Fetch the cursor of the currently focussed interface/view.
        #
        # @example
        #   Vedeu.cursor
        #
        # @return [Vedeu::Cursors::Cursor]
        def cursor
          cursors.by_name
        end

      end # Eigenclass

      null Vedeu::Cursors::Cursor
      real Vedeu::Cursors::Cursor

    end # Repository

    class Cursor

      repo Vedeu::Cursors::Repository.repository

    end # Cursor

  end # Cursors

  # Manipulate the repository of cursors.
  #
  # @example
  #   Vedeu.cursors
  #
  # @!method cursors
  #   @return [Vedeu::Cursors::Repository]
  # @!method cursor
  #   @see Vedeu::Cursors::Repository.cursor
  def_delegators Vedeu::Cursors::Repository,
                 :cursor,
                 :cursors

end # Vedeu

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vedeu-0.6.69 lib/vedeu/cursors/repository.rb
vedeu-0.6.68 lib/vedeu/cursors/repository.rb
vedeu-0.6.67 lib/vedeu/cursors/repository.rb
vedeu-0.6.66 lib/vedeu/cursors/repository.rb
vedeu-0.6.65 lib/vedeu/cursors/repository.rb
vedeu-0.6.64 lib/vedeu/cursors/repository.rb
vedeu-0.6.63 lib/vedeu/cursors/repository.rb
vedeu-0.6.62 lib/vedeu/cursors/repository.rb
vedeu-0.6.61 lib/vedeu/cursors/repository.rb